Search code examples
power-automatepower-automate-desktop

How to use AND and OR operator with IF in power automate desktop?


I searched and I found someone say it can be used like this:

IF $'''%TotalList = 200% || %TotalList = 400% || %TotalList = 600%''' = True THEN

enter image description here

But after I try it the flow was just skipped this if line so how I should use the two operands ?


Solution

  • You need to put it all between a single set of % % and use OR instead of ||.

    %TotalList = 200 OR TotalList = 400 OR TotalList = 600%
    

    The microsoft documentation is here