Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform boolean operations on two inputs for AI artists, offering various operators for decision-making processes.
The LayerUtility: BooleanOperatorV2 node is designed to perform a variety of boolean operations on two input values. This node is particularly useful for AI artists who need to implement conditional logic within their workflows. By providing a range of operators such as equality checks, logical operations, and comparisons, this node allows you to create complex decision-making processes. The node can handle both direct numerical inputs and string representations of numbers, making it versatile for different types of data. Additionally, it returns both a boolean result and a string representation of the result, which can be useful for further processing or debugging.
This parameter accepts a string input representing the first value to be used in the boolean operation. If the string contains numbers, they will be extracted and used for the operation. If the string is empty, a default value of 0 is used. This flexibility allows you to input values dynamically, making the node adaptable to various scenarios.
Similar to a_value
, this parameter accepts a string input representing the second value for the boolean operation. Numbers within the string are extracted and used, and if the string is empty, a default value of 0 is applied. This ensures that the node can handle a wide range of input formats without errors.
This parameter specifies the boolean operation to be performed. The available options are ==
, !=
, >
, <
, >=
, <=
, and
, or
, xor
, not(a)
, min
, and max
. Each operator performs a specific type of comparison or logical operation between the two input values, allowing you to tailor the node's behavior to your specific needs.
This optional parameter allows you to directly input the first value as a numerical type. If provided, it overrides the a_value
string input. This is useful when you have a predefined numerical value and want to bypass the string extraction process.
This optional parameter allows you to directly input the second value as a numerical type. Similar to a
, it overrides the b_value
string input if provided. This is beneficial for scenarios where you have a specific numerical value to use in the boolean operation.
This output parameter returns the boolean result of the specified operation. It indicates whether the condition defined by the operator and input values is true or false. This boolean result can be used in subsequent nodes to control the flow of your workflow.
This output parameter provides a string representation of the boolean result. This can be useful for logging, debugging, or any scenario where you need a textual representation of the boolean outcome.
a_value
and b_value
parameters for dynamic inputs where the values are extracted from strings, making the node adaptable to various data sources.a
and b
parameters for predefined numerical values to bypass the string extraction process and improve performance.and
, or
, and xor
.==
, !=
, >
, <
, >=
, <=
, and
, or
, xor
, not(a)
, min
, max
.a_value
or b_value
does not contain any numbers, and no default value is set.a
and b
parameters.b
or extracted from b_value
) is zero.© Copyright 2024 RunComfy. All Rights Reserved.