Skip to main content

Set multiple conditions for conditional branching

In Power Automate Desktop, it is not specified at the time of setting so that the user does not need to be aware, but there are multiple data types internally.

This time, I will explain how to set multiple conditions in one IF statement using a boule type that returns True or False.

About ## Boolean type

From "Configure Variables", write "%true%" or "%False%" directly to the destination, or write "%1 + 1 = 2%", "%3 + 2 = 6%", etc. Variables are stored in a boulewear type.

Booles can calculate new boules values ​​using AND and OR.

If you set "the first variable of the%Booler value and the second variable%in the first variable of the%boule value" from the variable setting, you can define the Boolal value that returns True only in the case of positive.

Therefore, when this is realized with IF statement, multiple conditions can be achieved by setting parameters as follows.

implemented with copy and paste

Copy the following code and paste it on the edit screen of Power Automate Desktop to add the target action.

SET Condition1 TO 1 + 1 = 2
SET Condition2 TO 2 + 3 = 6
IF (Condition1 AND Condition2) = True THEN
SET Result TO $'''matched'''
SET Result TO $'''not matched'''

Operate and implement Power Automate Desktop

  1. From "Search for Action", enter "Variables" and set the parameters as follows.

    Parameter namevalue
    address%1 + 1 = 2%
  2. Similarly, add a variable setting, and set the parameters as follows.

    Parameter namevalue
    address%2 + 3 = 6%
  3. Enter "IF" from "Action Search" and set the parameters as follows.

    Parameter namevalue
    First operand%Condition1 AND Condition2%
    Second operand%True%