Visit ComfyUI Online for ready-to-use ComfyUI environment
Handle integer values within specified range, ensuring adherence to constraints for data integrity in AI workflows.
The IntNumber
node is designed to handle integer values within a specified range, ensuring that the input number adheres to the defined minimum and maximum constraints. This node is particularly useful for scenarios where you need to validate or constrain integer inputs, making sure they fall within acceptable boundaries. By automatically adjusting the input number to fit within the specified range, it helps maintain data integrity and prevents errors that could arise from out-of-bound values. This node is essential for AI artists who need to manage numerical inputs in their workflows, providing a reliable way to enforce value constraints without manual intervention.
This parameter represents the integer value that you want to validate and constrain. The node will check this value against the specified minimum and maximum values and adjust it if necessary. The default value is 0, with a minimum of -1 and a maximum of 0xffffffffffffffff. The step value is 1, meaning the number can be incremented or decremented by 1.
This parameter sets the minimum allowable value for the number
parameter. If the input number is less than this value, it will be adjusted to match this minimum. The default value is 0, with a minimum of -0xffffffffffffffff and a maximum of 0xffffffffffffffff. The step value is 1.
This parameter sets the maximum allowable value for the number
parameter. If the input number exceeds this value, it will be adjusted to match this maximum. The default value is 1, with a minimum of -0xffffffffffffffff and a maximum of 0xffffffffffffffff. The step value is 1.
This parameter defines the increment or decrement step for the number
parameter. It determines how much the number can be increased or decreased in one step. The default value is 1, with a minimum of -0xffffffffffffffff and a maximum of 0xffffffffffffffff. The step value itself is 1.
The output parameter is the adjusted integer value that falls within the specified minimum and maximum range. This ensures that the output is always a valid integer within the defined constraints, providing a reliable and consistent result for further processing in your workflow.
min_value
and max_value
parameters to set strict boundaries for your integer inputs, ensuring they always fall within an acceptable range.step
parameter to control the granularity of changes to the number
parameter, which can be useful for fine-tuning values in your workflow.number
parameter is not an integer.number
parameter is a valid integer.min_value
parameter is set to a value greater than the max_value
parameter.min_value
and max_value
parameters to ensure that min_value
is less than or equal to max_value
.step
parameter is set to zero, which is not a valid step increment.step
parameter to a non-zero value to ensure valid increments or decrements for the number
parameter.© Copyright 2024 RunComfy. All Rights Reserved.