Skip to main content

Notifications

Power Automate - General Discussion
Answered

if expression in Microsoft flow

(0) ShareShare
ReportReport
Posted on by

How to write the correct expression? 

if(body('forecast_for_today')?['responses']?['daily']?['day']?['windDir']) >1, 'goggle day')
 
 
Categories:
  • Verified answer
    yashag2255 Profile Picture
    yashag2255 24,442 on at
    Re: if expression in Microsoft flow

    @Anonymous 

     

    Please use the expression

    if(greater(body('Get_forecast_for_today')?['responses']?['daily']?['day']?['windSpd'],1),'Goggle','noGoggle')

    First value 'Goggle' is the expression is true and 'noGoggle' if the expression is false. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Re: if expression in Microsoft flow

    @edgonzales  I want to use this expression 

    if(body('forecast_for_today')?['responses']?['daily']?['day']?['windSpd'])
  • Ed Gonzales Profile Picture
    Ed Gonzales 4,531 on at
    Re: if expression in Microsoft flow

    @Anonymous 

    Hi there!  I'm not great with expressions, but I did notice that you're looking for the Wind Direction and not the speed.  Is that intentional?

    I tried to do the same thing with conditions.  Let me know if that suits your scenario... (I used Max Wind Speed)

    20190621b.PNG

     

    -Ed-

     

     

    If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard