Loop
Loop
Repeat a set of steps while a condition holds, up to a maximum number of iterations
Fields
| Field | Type | Required | Description |
|---|---|---|---|
while | condition tree | yes | Re-evaluated before each iteration; if false at entry, the body never runs. |
maxIterations | integer, 1-50 | yes | Hard cap enforced by both validation and the run engine. |
body | array of steps | yes | Steps run each iteration. |
Example
{
"id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
"type": "loop",
"while": {
"op": "<",
"a": {
"path": "vars.run.i"
},
"b": {
"literal": 5
}
},
"maxIterations": 10,
"body": []
}Updated about 14 hours ago
Did this page help you?
