Begins 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 Output of this node to a [Cycle Continue](#Cycle_Continue)'s CYCLE Input to begin the loop.
The first iteration of the loop is called a 'DRY RUN', Index, Data and all Aux_Data Inputs will be set to None. Additionally the "Reset?" output will
return True so you can test this with an [IF Selector](#IF_Condition_Selector) node to determine whether you are in the first execution of the loop. You can also trigger a manual reset to the fist 'DRY RUN' iteration by toggling the Manual_Reset Input. Use the 'DRY RUN' to reset any variables or the state of your workflow whenever a fresh Cycle has started.
Set your Start, End and Step parameters to the values you would like to iterate from, to and by, respectively. If you'd like the loop to return automatically to the original Start value, enable the Auto_Reset Input, otherwise the cycle will continue to apply Step to Index on each iteration.
HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.
By VykosXΒ·Created 2 years agoΒ·Updated 2 years agoΒ· 147
π Cycle
CYCLE
RESET?
βstart0βΊ
βstep1βΊ
βend10βΊ
βmanual_resetββΊ
βauto_resettrueβΊ
CategoryπΊ VykosX-ControlFlowUtils
Inputs (5)
Name
Type
Default
Description
start
INT
0
The initial value of the loop counter
step
INT
1
How much the loop counter gets increased or decreased by on each iteration
end
INT
10
The value at which the loop is considered to be finished
manual_resetopt
BOOLEAN
Enable to force a 'DRY RUN' and reset the Cycle to its first iteration
auto_resetopt
BOOLEAN
true
Enable to have the loop counter automatically reset to Start once it reaches End
Outputs (2)
Name
Type
Description
CYCLE
CYCLE
Connect to the CYCLE input of a [CycleContinue] node to establish a loop
RESET?
BOOLEAN
Specifies whether the Cycle is executing its 'DRY RUN' iteration