cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

if expression in Microsoft flow

How to write the correct expression? 

if(body('forecast_for_today')?['responses']?['daily']?['day']?['windDir']) >1, 'goggle day')
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

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!

View solution in original post

3 REPLIES 3
Highlighted
Super User II
Super User II

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.

Highlighted
Anonymous
Not applicable

Re: if expression in Microsoft flow

@edgonzales  I want to use this expression 

if(body('forecast_for_today')?['responses']?['daily']?['day']?['windSpd'])
Highlighted
Dual Super User III
Dual Super User III

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!

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (3,745)