Nodes/ControlFlowUtils/⏪ Cycle Finish
ComfyUI Node

⏪ Cycle Finish

Ends 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 CYCLE input of this node to a [Cycle]'s CYCLE output node to establish a loop. Information from Data and Aux Inputs will flow through the CYCLE line and be cached to be retrieved upon the next loop iteration. The Index output specifies the current value of the loop counter after Step is applied. The Finished output returns True if the loop counter has reached or surpassed the value specified by End. HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.

By VykosX·Created 2 years ago·Updated 2 years ago· 147
⏪ Cycle Finish
  • CYCLE
  • data
  • aux
  • aux2
  • aux3
  • aux4
  • aux5
  • index
  • FINISHED?
Category🐺 VykosX-ControlFlowUtils

Inputs (7)

NameTypeDefaultDescription
CYCLECYCLEConnect to the CYCLE output of a [Cycle] node to establish a loop
data*Any data you wish to iterate on and propagate to subsequent prompts
auxopt*Any optional Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux2opt*Any optional Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux3opt*Any optional Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux4opt*Any optional Auxiliary data you wish to iterate on and propagate to subsequent prompts
aux5opt*Any optional Auxiliary data you wish to iterate on and propagate to subsequent prompts

Outputs (2)

NameTypeDescription
indexINTThe Index of the loop counter after being incremented or decremented by Step
FINISHED?BOOLEANBoolean value that specifies whether the cycle has terminated