Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform various boolean operations between two input values for AI artists' conditional logic needs, supporting a wide range of operators.
The LayerUtility: BooleanOperator
node is designed to perform a variety of boolean operations between two input values. This node is particularly useful for AI artists who need to implement conditional logic within their workflows. By leveraging this node, you can compare values, combine conditions, and determine the minimum or maximum of two inputs. The node supports a wide range of operators, making it versatile for different logical and comparison needs. Whether you are checking equality, performing logical AND/OR operations, or finding the minimum/maximum values, this node simplifies the process, allowing you to focus on the creative aspects of your project.
This parameter represents the first input value for the boolean operation. It can be of any type, such as a number, string, or boolean. The value of a
will be compared or combined with the value of b
based on the selected operator. There are no specific minimum, maximum, or default values for this parameter, as it is highly dependent on the context of your workflow.
This parameter represents the second input value for the boolean operation. Similar to a
, it can be of any type and will be used in conjunction with a
to perform the specified boolean operation. The value of b
is essential for operations that require two operands, such as comparisons or logical combinations. There are no specific minimum, maximum, or default values for this parameter.
This parameter specifies the boolean operation to be performed between a
and b
. The available operators are: ==
, !=
, >
, <
, >=
, <=
, and
, or
, xor
, not(a)
, min
, and max
. Each operator has a distinct function:
==
: Checks if a
is equal to b
.!=
: Checks if a
is not equal to b
.>
: Checks if a
is greater than b
.<
: Checks if a
is less than b
.>=
: Checks if a
is greater than or equal to b
.<=
: Checks if a
is less than or equal to b
.and
: Performs a logical AND operation between a
and b
.or
: Performs a logical OR operation between a
and b
.xor
: Performs a logical XOR operation between a
and b
.not(a)
: Performs a logical NOT operation on a
.min
: Returns the minimum value between a
and b
.max
: Returns the maximum value between a
and b
.This parameter represents the result of the boolean operation. The output is a boolean value (True
or False
) that indicates the outcome of the specified operation between a
and b
. For example, if the operator is ==
and a
equals b
, the output will be True
. This output is crucial for driving conditional logic in your workflow, enabling you to make decisions based on the comparison or logical combination of the input values.
==
and !=
operators to compare values and trigger different actions based on equality or inequality.and
and or
operators to combine multiple conditions, allowing for more complex decision-making processes.min
and max
operators to easily determine the smallest or largest value between two inputs, which can be useful in optimization tasks.==
, !=
, >
, <
, >=
, <=
, and
, or
, xor
, not(a)
, min
, max
.a
and b
are of types that cannot be compared or combined using the selected operator.a
and b
are numbers when using comparison operators like >
or <
.© Copyright 2024 RunComfy. All Rights Reserved.