While Loop Close (Deprecated)¶
Terminates or continues a while-style loop. When the condition is true, it re-runs the nodes between the matching While Loop Open and this node, carrying forward the state values. When the condition becomes false, it stops the loop and outputs the final accumulated values.

Usage¶
Use this node together with While Loop Open to build a while loop. Connect the flow_control output from While Loop Open to this node's flow_control input. Feed a boolean condition that determines whether to continue looping (true) or stop (false). Use the initial_value sockets to pass and update state between iterations. Prefer the newer Loop Open/Loop Close nodes for new workflows, as this node is deprecated.
Inputs¶
| Field | Required | Type | Description | Example | 
|---|---|---|---|---|
| flow_control | True | FLOW_CONTROL | Loop linkage from the corresponding While Loop Open. Identifies the loop scope to repeat. | Link from While Loop Open | 
| condition | True | BOOLEAN | If true, the loop body executes again; if false, the loop ends and outputs are returned. | True | 
| initial_value0 | False | WILDCARD | State value carried through the loop body and returned when the loop completes. | 0 | 
| initial_value1 | False | WILDCARD | Additional state value carried through the loop. | any data | 
| initial_value2 | False | WILDCARD | Additional state value carried through the loop. | {'counter': 1} | 
| initial_value3 | False | WILDCARD | Additional state value carried through the loop. | [1, 2, 3] | 
| initial_value4 | False | WILDCARD | Additional state value carried through the loop. | intermediate result | 
Outputs¶
| Field | Type | Description | Example | 
|---|---|---|---|
| value0 | * | Final or current state value 0 after loop completion or iteration. | 10 | 
| value1 | * | Final or current state value 1. | final data | 
| value2 | * | Final or current state value 2. | {'sum': 55} | 
| value3 | * | Final or current state value 3. | [5, 4, 3] | 
| value4 | * | Final or current state value 4. | done | 
Important Notes¶
- This node is deprecated. For new workflows, use Loop Open and Loop Close.
- The loop continues while condition is true. When condition becomes false, the node outputs the provided/accumulated values and ends the loop.
- Ensure the flow_control input is connected from the matching While Loop Open of the same loop.
- There are 5 state sockets (initial_value0 through initial_value4). Use them to pass data through iterations.
- If an error occurs during processing, the node falls back to returning the provided initial_value inputs.
Troubleshooting¶
- Loop never ends: Verify that your condition will eventually become false and that your state updates move toward termination.
- Loop does not iterate: Ensure condition is true and that flow_control is linked from the correct While Loop Open.
- Unexpected output values: Confirm you are wiring the intended state signals into initial_value0..4 and updating them inside the loop body.
- Type or shape mismatches: Keep the data types consistent across iterations for each initial_value socket.
- Multiple loops interfering: Make sure each While Loop Close is paired with its corresponding While Loop Open via the flow_control link.