ComfyUI Node

Tensor Loop Open

A ComfyUI node in looping/accumulation with 2 inputs and 4 outputs.

By kijai·Created 5 months ago·Updated 2 months ago· 26
Tensor Loop Open
  • initial_value
  • flow_control
  • previous_value
  • accumulated_count
  • current_iteration
mode
Categorylooping/accumulation

Inputs (2)

NameTypeDefaultDescription
modeCOMBOLoop termination mode.
initial_valueoptCOMFY_MATCHTYPE_V3Optional value to use as `previous_value` on the first iteration.

Outputs (4)

NameTypeDescription
flow_controlFLOW_CONTROL
previous_valueCOMFY_MATCHTYPE_V3The value from the previous iteration (or initial_value on first pass).
accumulated_countINTNumber of items collected so far (0 on first iteration).
current_iterationINTCurrent iteration index (1-based).