core / logic / schema v1
For Each / Repeat
Run a step once per item in a list, or a fixed number of times. The Item branch runs once PER iteration (with {{loop.item}} / {{loop.index}} / {{loop.iteration}}), then the Done branch runs with the aggregated results.
Prerequisites
No connection prerequisite is declared for this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
Repeat bymode | select Optional | "For each item" runs once per element of a list. {{loop.item}} / {{loop.index}} inside the loop body. "A fixed number of times" just repeats N times with no list: {{loop.iteration}} counts 1, 2, 3…. Options: For each item in a list (items), A fixed number of times (repeat) |
List to repeat overarray | list_items Required | The list to iterate. Each element becomes {{loop.item}} for one iteration. |
How many timescount | text Required | A fixed number, or a variable like {{option_bonus_entries}}. 0 runs the body zero times. Done fires immediately with an empty result.Field conditions{
"visible": {
"key": "mode",
"values": [
"repeat"
]
}
} |
Safety limit (max repeats)maxIter | number Optional | Safety cap on the number of repeats (default 1000). |
Inputs and outputs
Inputs
execute- Execute (input)
Outputs
item- Item (each) (output)done- Done (output)index- Index (0-based) (output)iteration- Iteration (1-based) (output)items- Input items (output)results- All results (output)count- Iterations run (output)
Output data schema
[
{
"key": "item",
"type": "any",
"label": "Current item",
"description": "The item available inside the Item branch for this iteration."
},
{
"key": "index",
"type": "number",
"label": "Index (0-based)"
},
{
"key": "iteration",
"type": "number",
"label": "Iteration (1-based)"
},
{
"key": "items",
"type": "array",
"label": "Input items",
"items": {
"key": "item",
"type": "any"
}
},
{
"key": "results",
"type": "array",
"label": "All iteration results",
"items": {
"key": "result",
"type": "any"
}
},
{
"key": "count",
"type": "number",
"label": "Iterations run"
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
2157901d811fc47759671f7ce49e7ce76ffeae35c080b294878576611583c7db