Add an If Action

You use this action to add If, Else and Else If conditions.

To use an If action:

  1. Add the action in one of three ways, as explained at the end of Built-In Actions.
  2. With the If block selected on the canvas, add a condition using the Condition property. As a reminder, enclosing the expression in double curly brackets in the Properties pane indicates that it's a direct expression and not a string.

  3. Add the action to take for the If block to the Add Action area. You can either select the block and double-click the action, or you can drop the action onto the Add Action area. If another action is to follow, double-click the next action, or drop it onto the bottom edge of the preceding action.

  4. To add an Else or Else If condition, you have to options:
  5. By default, an Else condition is created. To turn the Else into an Else If, enter a condition for it in the Properties pane:

  6. To add an Else or another Else If condition, drop the first action to take for the condition onto the Create Branch area of the Else If block. Again, an Else condition is created by default, but it can be turned into an Else If by entering a condition in the Properties pane.

    Here's the completed example: