If / else
If / else branches the workflow. Steps on the Yes path run when the conditions pass. Steps on the No path run when they do not. To add a condition, follow these steps:- Click Add step and choose If / else.
- Select the step. In the side panel, set Match:
- All conditions must pass — every row must be true (and).
- Any condition can pass — one true row is enough (or).
- Click Add to create a condition row.
- Enter the left value, choose an operator, and enter the right value when the operator needs one. Both sides can be a literal or a
{{ }}expression. - Click Add step on the Yes or No branch to add the steps that should run on that path.
Operators
For each
For each repeats the steps on its Each item branch once per item in an array, then continues along the Then branch. To add a loop, follow these steps:- Click Add step and choose For each.
- Select the step and set Array to an expression that resolves to a list, for example
{{ trigger.object.customers }}. - Click Add step on the Each item branch and configure the steps to run for every item.
- Optionally add steps on the Then branch to run after the loop finishes.
{{ loop.item }}— the current item{{ loop.item.id }}— the current item’s ID, when the item is a record{{ loop.index }}— the current item’s position, starting at 0
A loop can run for at most 50 items. If the array is longer, the run fails.