Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile node for comparing input values with specified operations, enhancing AI art workflow efficiency.
Eden_Compare is a versatile node designed to compare two input values and determine their relationship based on a specified comparison operation. This node is particularly useful for logical operations within your AI art workflows, allowing you to make decisions based on the comparison results. By leveraging this node, you can automate processes that depend on the evaluation of conditions, enhancing the efficiency and intelligence of your creative projects. Whether you need to check for equality, inequality, or relational conditions like greater than or less than, Eden_Compare provides a straightforward and reliable solution.
This parameter represents the first input value to be compared. It can be of any type, such as an integer, float, string, or any other comparable data type. The default value is 0. The value of a
is crucial as it serves as one of the operands in the comparison operation.
This parameter represents the second input value to be compared against the first input a
. Similar to a
, it can be of any type and has a default value of 0. The value of b
is essential as it serves as the other operand in the comparison operation.
This parameter specifies the type of comparison to be performed between a
and b
. The available options are "a == b", "a != b", "a < b", "a > b", "a <= b"
, and "a >= b". The default comparison is "a == b". This parameter determines the logical condition that will be evaluated, and the result of this evaluation will be the output of the node.
The output of the Eden_Compare node is a boolean value that indicates the result of the comparison operation. If the specified comparison condition between a
and b
is met, the output will be True
; otherwise, it will be False
. This boolean output can be used to drive further logic in your workflow, enabling conditional execution of subsequent nodes or actions.
a
and b
are compatible for the specified comparison to avoid unexpected results.<comparison>
a
and b
are not compatible with the specified comparison operation.a
and b
are of compatible types for the chosen comparison. For example, avoid comparing a string with an integer.comparison
parameter is set to one of the valid options: "a == b", "a != b", "a < b", "a > b", "a <= b"
, or "a >= b".a
and b
are appropriate for the intended comparison and are not being incorrectly interpreted as integers.© Copyright 2024 RunComfy. All Rights Reserved.