Visit ComfyUI Online for ready-to-use ComfyUI environment
Generates integer sequences with reset capability for controlled iteration and value generation.
The LogicUtil_YieldableIteratorInt
node is designed to generate a sequence of integers based on specified start, end, and step values. This node is particularly useful when you need to iterate over a range of numbers in a controlled manner, such as for creating loops or generating a series of values for further processing. One of its key features is the ability to reset the sequence, allowing you to start the iteration from the beginning whenever needed. This can be especially beneficial in scenarios where you need to repeat a sequence multiple times or ensure that the sequence starts fresh under certain conditions.
The start
parameter defines the initial value of the sequence. It determines where the iteration begins. The default value is 0, with a minimum value of 0 and a maximum value of 9999999999. Adjusting this parameter allows you to control the starting point of your sequence.
The end
parameter specifies the value at which the sequence will stop. The iteration will continue up to, but not including, this value. The default value is 10, with a minimum value of 0 and a maximum value of 9999999999. This parameter is crucial for defining the range of your sequence.
The step
parameter indicates the increment between each value in the sequence. It determines how much the sequence value increases with each iteration. The default value is 1, with a minimum value of 0 and a maximum value of 9999999999. By adjusting this parameter, you can control the spacing between the values in your sequence.
The reset
parameter is a boolean flag (0 or 1) that determines whether the sequence should start over from the beginning. If set to 1 (True), the sequence will reset to the start value. The default value is 0 (False). This parameter is useful for scenarios where you need to reinitialize the sequence.
The output of the LogicUtil_YieldableIteratorInt
node is a single integer value from the sequence. This value is generated based on the current state of the iterator and the specified start, end, and step parameters. The output is crucial for any subsequent operations that require a sequential integer value.
start
to 0, end
to 10, and step
to 1. - Use the reset
parameter to restart the sequence from the beginning whenever a specific condition is met, ensuring consistent iteration behavior.end
value is greater than your start
value to avoid infinite loops.step
value is set to 0, which would result in an infinite loop.step
value is greater than 0 to allow the sequence to progress correctly.© Copyright 2024 RunComfy. All Rights Reserved.