context.runtime (e.g., {{context.runtime.current_order}}).
You can iterate over:
- An array variable: Loop through each item in an array from context (e.g.,
{{context.inputs.orders}}) - A static number: Loop a fixed number of times by specifying a number directly (e.g.,
5)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
variable_over | string | Yes | The array to iterate over, or a number for fixed iterations |
variable_current_item | string | Yes | Variable name to store the current item (accessible via context.runtime) |
variable_current_index | string | Yes | Variable name to store the current index (accessible via context.runtime) |
Examples
Loop Over Input Array
Process each item from an input array:Loop Body Return
The last node in the loop body should connect back to the loop node to continue iteration:Notes
- The loop automatically increments the index and updates the current item on each iteration
- Arrays extracted during the loop are appended by default; use
overwriteArrayKeysin Extract Datamodel to replace - You can access the current index (0-based) using the
variable_current_indexvariable - Loops can be nested by using different variable names for each level

