LoopControl FlowwidgetsCoreloop· Version 1.0.0
Run a block of nodes once for each element of an array.
Loop walks an array one element at a time. Wire the onIterate exit to the first node of the body and wire the end of the body back to this node: each pass writes the current element to the variable named in Item Variable, then routes out onIterate again. When the array runs out, or the list is empty, the flow takes onFinished instead. Maximum Iterations is a runaway guard rather than a batch size: tripping it takes invalidInput, with a message naming the limit and the length of the array, so a cap set below the length of the list is reported instead of quietly dropping the rest. The body is a plain run of nodes on the canvas, so nothing constrains where it goes — a body that never routes back to the loop simply runs once. Use Loop Group instead when you want the body boxed on the canvas and a break exit.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
Arrayarray | string | Required | The list to walk. A variable holding a JSON array, or a JSONPath that resolves to one. Example: $(order.items) |
Item VariableitemVariable | string · variableName | Required | The variable name the current element is written to before each pass. Read it in the body with the $(name) syntax. Example: item |
Maximum IterationsmaxIterations | number | Required | The most passes this loop may make. A runaway guard, not a batch size: reaching it with items still unprocessed stops the loop on the invalid input exit, naming the limit and the length of the array, rather than reporting a run that dropped most of its work as finished. Example: 100 |
Exits
System exits (auto-injected, hidden when unwired): invalidInput, fallback.