Configure a Switch Branch


First published on: 02/21/2024/8:39 pm

 

 

Switch branches define a list of conditions (also called “cases”) followed by a catch-all default case that's executed only when no other conditions are met.

 

The first path whose conditions are met is the only path executed by the switch branch. 

 

Like “If” and “If-Else” branches, "Switch Cases" use conditions.

 

Unlike “If”/“If-Else” branches, conditions are defined in the case statements, not in the branch details. 

 

To configure a switch branch, configure the basic settings listed here.

  • Close the branch details pane.
  • Look in the body of the switch branch.
    • Initially, a "Default Case" will be created.
    • Use the + button (marker 1 below) to add a case for each condition or set of conditions the workflow needs to handle. 

 

 

 

The first condition matched will be the path whose actions are executed, so you can move cases up or down to change their priority.

 

Grab the drag handles (marker 1 below) and reposition the case as needed.

 

Note: The default case can't be moved and will be executed only when no matches are found in other cases. 

 

 

 

To configure a case’s conditions, edit the case using the pencil icon (marker 1 below). 

 

 

 

Press the "Add Condition" button (marker 1 below) and configure the values to be compared (markers 2, 3, 4).

 

If adding multiple conditions, you may match any (logical “OR”) or match all (logical “AND”). 

 

 

 

 

 

Previous


  

Last modified: 05/01/2025/2:53 pm

-