- 16 Feb 2023
- 1 Minute to read
- DarkLight
Operators
- Updated on 16 Feb 2023
- 1 Minute to read
- DarkLight
Operators are steps that help direct and determine how a workflow proceeds.
If
The If operator is a boolean that evaluates a statement or value and directs the workflow accordingly. The values are case insensitive when applicable and type insensitive (meaning an integer and a number string are evaluated the same) when applicable.
Switch
Build a series of branches, checked left to right. The first branch whose conditions are met will run. If none are met, the default branch is run. To access the Switch operator, hover on the If operator.
Loop
The Loop operator repeats one or more steps for each member of an array or map.
Collect
Collects the results of each loop iteration and creates an array from the collected values. The Collect operators must be placed within a loop. To access the Collect operator, hover on the Loop operator.
Break
The Break operator can be placed within a loop and is used to terminate the loop process immediately. To access the Break operator, hover on the Loop operator.
Exit
The Exit operator can be placed within a loop and is used to add a condition for leaving the loop.
Wait
The Wait operator can be placed within a workflow at any point and will put the remainder of the workflow on hold for the defined duration. After you add an operator step, rename it from "If", "Loop", "Break", etc. to a meaningful name that explains the conditions you've applied. This will explain how/under what conditions the workflow proceeds to anyone else looking at the workflow.