expressions
Power Automate,  Power Platform

How to use expressions and conditions in Power Automate/Flow?

While creating a cloud flow you may encounter some need of conditions/expressions for logic building. You can use condition card in basic mode to quickly compare a single value with another value.

Single

Note: You can add up to 10 condition rows under one logical value. To add more rows under one logical value, first add group then ungroup that group you will see more rows under one logical value.

However when you need to compare multiple values with multiple logical values you can add group in your condition block.

expressions

Note: Whatever conditions you are using in condition action you can always write that expression in a compose action.

Following expressions are available in flow studio-

ExpressionExplanationSupported typeExample
andReturns true if both arguments are true otherwise returns falseBooleanand(greater(12,1),equals(5,5))
orReturns true if either arguments is true otherwise returns falseBooleanor(greater(12,1),equals(5,5))
notReturns the opposite of a boolean value.Booleannot(contains('Status','Approved')
ifReturns a specific value if the expression results in true or false.-if(equals(1,1),'Yes','No')
emptyReturns true if the object, array, or string is empty.Object, Array and Stringif(empty(''),'Yes','No')
equalsReturns true if two values are equal-equals(1,1)
lessTakes two arguments and returns true if the first argument is less than the second argument.Integer, Float,Stringless(12,120)
lessOrEqualsTakes two arguments and returns true if the first argument is less than or equal to the second argument.Integer, Float,StringlessOrEquals(12,12)
greaterTakes two arguments and returns true if the first argument is greater than the second argument.Integer, Float,Stringgreater(14,1)
greaterOrEqualsTakes two arguments and returns true if the first argument is greater than or equal to the second argument.Integer, Float,StringgreaterOrEquals(15,15)

Example-

expressions example

Thank You!!!

Gopenly

Leave a Reply