Branch by condition

The Branch by condition action A tool for building the processes, logic, and direction within workflows. directs your workflow along one of two paths, or branches, depending on whether conditions that you define are true. When the workflow runs, the branch by condition action chooses the branch to use according to the conditions you set.

  • If the conditions are met, the workflow chooses the Yes branch.
  • If the conditions are not met, the workflow chooses the No branch.

You can only have two branches with the branch by condition action. However, you can set as many conditions as you want and the conditions can be as simple or as complex as you require.

Configure the Branch by condition action

See the Branch by condition fields, buttons, and links table for all the configuration fields.

In the Designer page:

  1. Click the Logic and flow action group in the action toolbox.

    or

    Find actions by browsing action groups, or by typing an action name or function in the Search field at the top of the action toolbox.

  2. Drag the Branch by condition action to where you want the workflow to branch.

  3. Click the Branch by condition action.

  4. Complete the condition fields: 

    1. For When, select the variable you want to evaluate.

    2. For Operator, select an operator for comparing the variable to the value.

    3. For Value, specify a value for the comparison. You can insert a variable or type the value.
  5. Click Add condition to save the new condition.
  6. For each additional condition you want to add: 
    1. Click Add condition.
    2. Complete the condition fields: 

      1. For When, select the variable you want to evaluate.

      2. For Operator, select an operator for comparing the variable to the value.

      3. For Value, specify a value for the comparison. You can insert a variable or type the value.
    3. Click Add condition to save the new condition.
  7. Select any or all to determine how to evaluate the set of conditions.