You use this action to add If, Else and Else If conditions.
To use an If action:
Add the action in one of three ways, as explained at the end of Built-In Actions.
With the If block selected on the canvas, use either the visual condition builder or the code condition builder to create the condition. To visually create the condition, click the first field in the blue box and select the variable to compare against a value or another variable. Select the comparison operator using the second filed, and enter the value or variable to compare against in the third field.
To add another condition, click the + Condition button and create the condition as explained in the previous step.
To reorder, delete, or add a condition before or after an existing condition, right-click the condition to bring up its context menu.
To combine the conditions with an AND operator, select all from the True if list. To combine the conditions with an OR operator, select any from the list.
Add the action to take for the If block when the conditions are met. You can either select the block and double-click the action, or drag and drop the action onto the Add Action area. If another action is to follow, double-click the next action or drag and drop it onto the bottom edge of the preceding action.
To add an Else or Else If condition, you have two options:
Drop the action to take for the new condition onto the Create Branch area at the bottom of the If block, which appears when you hover over it with an action.