Visit ComfyUI Online for ready-to-use ComfyUI environment
Compare floating-point numbers with specified conditions for decision-making and action triggering in AI art workflows.
The DeforumFloatComparatorNode is designed to compare two floating-point numbers based on a specified condition. This node is particularly useful in scenarios where you need to make decisions or trigger actions based on the comparison of numerical values. By providing a flexible set of comparison operators, it allows you to evaluate whether one number is less than, less than or equal to, greater than, greater than or equal to, or equal to another number. This functionality is essential for creating dynamic and responsive AI art workflows, where numerical thresholds and conditions can dictate the flow of operations.
This parameter represents the first floating-point number to be compared. It accepts values ranging from -999999.00 to 2^32, with a default value of 0.00. The precision of this parameter is controlled by a step size of 0.01, allowing for fine-grained adjustments. The value of float_1
is crucial as it serves as one of the two operands in the comparison operation.
This parameter represents the second floating-point number to be compared against float_1
. Similar to float_1
, it accepts values ranging from -999999.00 to 2^32, with a default value of 0.00 and a step size of 0.01. The value of float_2
is the second operand in the comparison operation, and its value will be compared to float_1
based on the specified condition.
This parameter specifies the condition for comparing float_1
and float_2
. The available options are "<"
, "<="
, ">", ">=", and "==". Each option represents a different type of comparison: less than, less than or equal to, greater than, greater than or equal to, and equal to, respectively. The chosen condition determines how the two floating-point numbers will be evaluated against each other.
The output of this node is a boolean value that indicates the result of the comparison. If the specified condition between float_1
and float_2
is met, the output will be True
; otherwise, it will be False
. This boolean output can be used to control the flow of subsequent operations in your AI art workflow, enabling conditional logic based on numerical comparisons.
float_1
and float_2
parameters to input the numerical values you want to compare. Ensure that these values are within the acceptable range to avoid errors.condition
to define the type of comparison you need. For example, use ">" to check if float_1
is greater than float_2
."<"
, "<="
, ">", ">=", "==")."<"
, "<="
, ">", ">=", "==".float_1
or float_2
are outside the acceptable range of -999999.00 to 2^32.© Copyright 2024 RunComfy. All Rights Reserved.