If
The If block is used to specify logical conditions. This block contains If and Else sections. To specify which actions are run when a condition is met, you add blocks in the If section. To specify which actions are run when a condition is unmet, you add blocks in the Else section.
Procedure
- Drag and drop the If block onto your chosen location in the workflow. Generally, this block consists of three lines: If, Else, End If.
- Specify the condition in the provided field of the If line. For example, enter $result=true.
- In the If section, add blocks for the actions that you want to be performed when the condition is met.
- Optional: In the Else section, add blocks for the actions that you want to be performed when the condition is unmet.
- Click Run to apply the changes.
Disabling the If block
To disable the block without deleting it, turn off the switch in the block header.