Learn how to add conditional logic to your UiPath projects using the Is and IsNot conditions. Check variable values and execute corresponding actions.
In UiPath, you can use the “Is” and “IsNot” conditions to check if a value is or is not equal to a specific value. Here is an example of how you can use these conditions in a flowchart:
Drag an “Assign” activity onto the flowchart and set the value of a variable, for example, “variable1” = 10.
Drag a “Decision” activity onto the flowchart. In the “Decision” activity, set the condition to “variable1 Is 10”.
Connect the “Assign” activity to the “Decision” activity using the “True” connector.
Drag an “Assign” activity onto the flowchart.
Drag a “Decision” activity onto the flowchart. In the “Decision” activity, set the condition to “variable1 IsNot 10”.
Connect the “Assign” activity to the “Decision” activity using the “False” connector.
This flowchart will check if the value of “variable1” is equal to 10, and if it is, it will execute the activity connected to the “True” connector. If the value of “variable1” is not equal to 10, it will execute the activity connected to the “False” connector.
In UiPath, the “Is” and “IsNot” conditions are used in the Decision activity, which checks if a certain condition is true or false. They can also be used in the If activity where the expressions are evaluated and the corresponding actions are performed.