ComfyUI Node
Tensor Loop Open
A ComfyUI node in looping/accumulation with 2 inputs and 4 outputs.
Tensor Loop Open
- initial_value
- flow_control
- previous_value
- accumulated_count
- current_iteration
◄mode▾►
Categorylooping/accumulation
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | Loop termination mode. | |
| initial_valueopt | COMFY_MATCHTYPE_V3 | Optional value to use as `previous_value` on the first iteration. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| flow_control | FLOW_CONTROL | — |
| previous_value | COMFY_MATCHTYPE_V3 | The value from the previous iteration (or initial_value on first pass). |
| accumulated_count | INT | Number of items collected so far (0 on first iteration). |
| current_iteration | INT | Current iteration index (1-based). |