- 22 Feb 2023
- 1 Minute to read
- DarkLight
Switch between branches
- Updated on 22 Feb 2023
- 1 Minute to read
- DarkLight
The Switch operator builds a series of branches, where each branch contains its own conditions and steps. This allows you to specify different actions based on different conditions. Using the Switch operator will help keep your canvas neat and organized while accounting for the many changing conditions of security checks.
The branches are read and evaluated from left to right - whichever branch's conditions are met first will execute their steps. If no branches meet the conditions, the default branch is executed.
Add a new branch
Add a new branch by clicking the Add Branch operator on the right side of the branch display. You can add up to 26 branches.
Execution log
Check which branch was executed by looking in the execution log.
Change branch name
Change the branch names to more accurately reflect their conditions by double-clicking. Individual words will be automatically capitalized, and the name will be fully displayed up to 40 characters - although the suggested name is short and to the point.
Change branch order
Branch conditions are evaluated in order from left to right. Move higher priority branches to the left, keeping in mind that whichever conditions are met first, are the steps that will be executed. The rest of the branches will be ignored.
Default branch
Make sure you define the default branch's conditions. If there are no steps in the default branch, nothing will happen if no branch conditions are met.