For Each

Iterate over an array and run a loop body once per item.

Type: LOGIC · Handler: BUILT_IN · Rendering: loop


Ports

PortHandleWhen it runs
Loop bodybodyConnected nodes run once per array item
CompletedoutputRuns after all iterations finish
BreakbreakOptional early-exit path (advanced)

Connect the body branch from Loop body, not the default output. Connect downstream “done” logic from Completed.


Configuration

FieldRequiredDescription
arrayYesArray to iterate (from upstream or template)
itemVariableNoVariable name for current item (default item)
indexVariableNoVariable name for index (default index)

Inside the loop body, use {{vars.item}} and {{vars.index}} (or your custom names).


Outputs

FieldDescription
totalLength of the array
iterationsCount of iterations executed
iterationResultsPer-iteration node results
item / indexLast iteration values
breakEarlyTrue if loop exited early

Recommended chain

Do not use For Each for sorting/filtering lists. Use Transform Data first:

[data] → transform_data (filter | sort | chunk) → for_each (body) → …

Requires

None. Install Transform Data if you need to shape the list before looping.

Was this helpful?
historyLast updated: May 10, 2026