For Loop Close (Deprecated)¶
Closes a counter-based loop started by For Loop Open. It decrements the remaining counter each iteration and continues looping while remaining > 0, forwarding loop-carried values through to the next iteration.

Usage¶
Use together with For Loop Open to iterate a fixed number of times. Connect For Loop Open's flow_control output to this node's flow_control input. Wire any loop-carried state (values you want to preserve and update across iterations) into initial_value1..4 on Close and back from value1..4 to the corresponding inputs on the Open side of your looped nodes.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| flow_control | True | FLOW_CONTROL | Loop control link from For Loop Open. Establishes the loop context. | Connected from For Loop Open: flow_control |
| initial_value1 | False | * | First loop-carried value. Provide the updated value from inside the loop to be preserved into the next iteration. | Accumulated list or running total |
| initial_value2 | False | * | Second loop-carried value. | Intermediary computation result |
| initial_value3 | False | * | Third loop-carried value. | Status dictionary |
| initial_value4 | False | * | Fourth loop-carried value. | Any data type you need to persist |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| value1 | * | Final or next-iteration value corresponding to initial_value1. | Updated running total |
| value2 | * | Final or next-iteration value corresponding to initial_value2. | Transformed data |
| value3 | * | Final or next-iteration value corresponding to initial_value3. | State object |
| value4 | * | Final or next-iteration value corresponding to initial_value4. | Auxiliary payload |
Important Notes¶
- This node is deprecated. Prefer using Loop Open and Loop Close for new workflows.
- Works only when paired with For Loop Open. It uses the internal loop 'remaining' counter and continues while remaining > 0.
- Loop-carried values are optional; connect only the ones you need to persist across iterations.
- If not all initial_value sockets are provided, their corresponding outputs will pass through None.
- This node internally decrements the remaining counter each iteration and stops when it reaches zero.
Troubleshooting¶
- Loop never ends: Ensure the remaining value from For Loop Open is a positive integer. The loop stops when remaining reaches 0.
- Values not updating between iterations: Confirm you route the outputs (value1..4) from inside the loop back into the corresponding initial_value inputs on the next pass.
- Unexpected None outputs: Provide all required initial_value inputs, or ensure upstream nodes inside the loop produce values before Close executes.
- Loop does not start: Verify For Loop Open is correctly connected to this node's flow_control input and that the initial remaining count is >= 1.