Loops
Repeat a nested body over a range, list, object, or until a return says stop.
Loop blocks sit in the builder palette under Basic → Loops. They run a nested body once per iteration, then continue on the main out path. Shared graph rules are on Workflows; each page covers Config for that type.
Callback is a new callback scope, not the next step on the main path. Connect it to a Lambda block. Everything after Lambda runs only inside that iteration (named variables from outside plus this loop’s args.*). End the body with Return so the loop can collect a value. That return is for the callback, not for the whole workflow. While and Do While use a required condition on the block to decide whether to run again.
| Use | Block |
|---|---|
| Count from a start to an end | For |
| Repeat while a condition matches | While |
| Run once, then while a condition matches | Do While |
| Walk keys and values of an object | For In |
| Walk items in a list | For Of |
| Stop the loop from inside the body | Break |
| Skip this iteration and start the next | Continue |
| Start the nested body (callback scope) | Lambda |
| Finish the body and collect a value | Return |
7