If
Control under which circumstances an Action Node or a set of nodes should be executed. You may add conditions to the IF node, and you may add Action Nodes as children of the IF node. If the condition is evaluated as true, all Action Nodes inside will trigger. You may also add IF nodes inside another IF node, for more complex evaluation or control of the Action flow.
To handle more than one condition, add Else if and Else blocks to the same node:
Else if: Only evaluated if the conditions above it (the
IFblock and any earlier Else if blocks) evaluate tofalse. If its own condition evaluates totrue, the Action Nodes inside it run.Else: A fallback block with no condition of its own. Its Action Nodes run only if none of the conditions above it evaluated to
true.
Blocks are evaluated from top to bottom, and only the first block whose condition evaluates to true runs — the rest are skipped.
Important
Else if and Else blocks are only available on the IF action node in flows. They aren't available in apps or services.
Properties
The IF block, and each Else if block, requires only a Condition to be set up.
Data Binding: Select a property (must be a boolean type property) holding TRUE or FALSE. The block will evaluate to TRUE depending on the property you select for Data Binding.
Condition: Use the Condition Editor to set up a logical expression. The block will evaluate to TRUE is this expression evaluates to TRUE.
Function: Use the Function Editor to set up an advanced expression. You may use Javascript inside the Function Editor. The function must return either TRUE or FALSE.
Add Else if and Else blocks
Hover over the IF block, or an existing Else if block, to reveal its toolbar. Click + and select Add Else if block or Add Else block.
You can add any number of Else if blocks.
You can add only one Else block. It's always evaluated last, after every Else if block.
Use the up and down arrows in the toolbar to reorder Else if blocks and change the order they're evaluated in.
Last updated
Was this helpful?