Nodes/ControlFlowUtils/⏩ Cycle Continue
ComfyUI Node

⏩ Cycle Continue

Continues a Cycle, a kind of Loop that gets iterated each time a prompt is executed. You can use Cycles to send information forwards into subsequent prompts, allowing for workflows that process data in an iterative manner. Connect the Data and Aux outputs of this node to a [Cycle End]'s Data and Aux inputs to continue the loop, ideally after processing them. The Index output specifies the current value of the loop counter before Step is applied. You can connect any outputs to this node's Data or Aux_Data inputs to propagate that data into subsequent prompt executions. This allows you to process data iteratively by queuing multiple prompts at a time or even setting the execution to Instant which will queue up prompts automatically. Execution can then be interrupted via the [HaltExecution] node on demand once your Cycle has finished or for any other reason you may have. HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.

By VykosX·Created 2 years ago·Updated 2 years ago· 147
⏩ Cycle Continue
  • CYCLE
  • data
  • aux
  • aux2
  • aux3
  • aux4
  • aux5
  • index
  • data
  • aux
  • aux2
  • aux3
  • aux4
  • aux5
index_override
Category🐺 VykosX-ControlFlowUtils

Inputs (8)

NameTypeDefaultDescription
CYCLECYCLEConnect to the CYCLE output of a [Cycle] node to establish a loop
data*The initial value of any data you wish to iterate on and propagate to subsequent prompts
index_overrideoptINTManually override the current index of the Cycle. You can use this input to have complex Step calculations or to reset the loop manually
auxopt*Any optional Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux2opt*The initial value of any Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux3opt*The initial value of any Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux4opt*The initial value of any Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux5opt*The initial value of any Auxiliary data you wish to iterate on and propagate to subsequent prompts

Outputs (7)

NameTypeDescription
indexINTThe Index of the loop counter before being incremented or decremented by Step
data*Connect to the Data input of a [CycleEnd] node after processing
aux*Connect to the respective Aux input of a [CycleEnd] node after processing
aux2*Connect to the respective Aux input of a [CycleEnd] node after processing
aux3*Connect to the respective Aux input of a [CycleEnd] node after processing
aux4*Connect to the respective Aux input of a [CycleEnd] node after processing
aux5*Connect to the respective Aux input of a [CycleEnd] node after processing