For Loop Close (Deprecated)¶
Completes a counted for-loop started by For Loop Open and returns the final loop-carried values. Internally, it drives the loop to run a fixed number of iterations by decrementing an internal counter until zero, then exposes the final values from the loop.

Usage¶
Use this node as the closing counterpart to For Loop Open when you need a fixed-iteration loop with one or more loop-carried variables (accumulators). Connect the flow_control output from For Loop Open to this node’s flow_control input, optionally supply initial_value inputs for your loop-carried data, and consume the value outputs as the final results after all iterations.
Inputs¶
| Field | Required | Type | Description | Example | 
|---|---|---|---|---|
| flow_control | True | FLOW_CONTROL | The loop context produced by For Loop Open. It contains the loop counter and state required to execute and finalize the for-loop. | Output from For Loop Open's flow_control | 
| initial_value1..initial_valueN | False | WILDCARD | Optional loop-carried initial values. Each initial_valueX seeds a corresponding valueX output. Provide as many as needed to track data across iterations (e.g., accumulators, lists, objects). Note: initial_value0 is reserved internally for the loop counter and is not exposed here. | initial_value1: 0 (INT accumulator), initial_value2: [] (LIST), initial_value3: {"sum": 0} (DICT) | 
Outputs¶
| Field | Type | Description | Example | 
|---|---|---|---|
| value1..valueN | * | Final loop-carried results after the for-loop completes. Each valueX corresponds to the progression of initial_valueX through all iterations. | value1: 45 (final INT sum), value2: [items...] (final LIST), value3: {"sum": 45} (final DICT) | 
Important Notes¶
- Deprecated: Use Loop Open and Loop Close for new graphs; they offer a more flexible, unified looping interface.
- Pairing Required: Must be paired with For Loop Open. Do not connect flow_control from unrelated sources.
- Loop-Carried State: Provide only initial_value1 and above; initial_value0 is reserved for the internal counter and handled automatically.
- Type-Agnostic Values: initial_value and value outputs are wildcard-typed and can carry any data type.
- Fixed Iteration Behavior: The loop runs a preset number of times determined by the opening node’s configuration; the close node finalizes and emits the last values.
Troubleshooting¶
- No outputs or None values: Ensure flow_control is connected from a matching For Loop Open. Mismatched or missing flow_control prevents execution.
- Unexpected iteration count: Verify the start/step/end settings in For Loop Open; the close node uses the loop counter from the open node.
- Missing value outputs: If you need more value outputs, supply additional initial_value inputs (initial_value2, initial_value3, etc.) so the loop can carry those states.
- Type errors downstream: Since outputs are wildcard-typed, ensure downstream nodes accept the resulting types (e.g., INT, LIST, DICT).
- Deprecated warning: If you see deprecation notices, migrate to Loop Open/Loop Close by mapping your flow_control and initial_value/value pairs accordingly.