Skip to main content

Loops

A step with a loop definition repeats its nested steps multiple times. Two loop types are supported: while and forEach.

while loop

Repeat while a condition is truthy:

forEach loop

Iterate over items in a JSON array variable or a memory collection:
To iterate over a memory collection, use the collection: prefix:

Loop fields

A loop must have exactly one of condition or forEach — not both.

Branches

A step with branches executes different sets of steps based on a variable’s value:

Branch fields

BranchCase fields

Conditional steps

Any step can have a condition field. When the condition evaluates to a falsy value, the step is skipped:
A step cannot have both loop and branches at the same time.