cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amarpal
Level: Powered On

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
Super User
Super User

Re: if expression in Microsoft flow

@amarpal 

 

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!

3 REPLIES 3
Super User
Super User

Re: if expression in Microsoft flow

@amarpal 

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.

amarpal
Level: Powered On

Re: if expression in Microsoft flow

@edgonzales  I want to use this expression 

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

Re: if expression in Microsoft flow

@amarpal 

 

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!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 126 members 4,728 guests
Please welcome our newest community members: