Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile logical operations node for comparing inputs with various expressions, outputting true or false based on conditions.
The SDVN Boolean node is a versatile tool designed to perform logical operations based on user-defined conditions. It allows you to compare two inputs, a
and b
, using a variety of logical expressions such as equality, inequality, greater than, less than, and membership checks. Depending on the result of the logical operation, the node outputs one of two possible values: input_true
if the condition is met, or input_false
if it is not. This functionality is particularly useful for creating dynamic workflows where decisions are made based on specific criteria, enabling more complex and responsive AI art generation processes.
This parameter represents the value that will be output if the specified logical condition evaluates to true. It can be of any data type, allowing for flexibility in what is returned when the condition is met.
This parameter represents the value that will be output if the specified logical condition evaluates to false. Like input_true
, it can be of any data type, providing flexibility in the output when the condition is not met.
This is one of the two values to be compared in the logical operation. It can be of any data type, and its role is to serve as the first operand in the logical expression.
This is the second value to be compared in the logical operation. It can also be of any data type and serves as the second operand in the logical expression.
This parameter defines the logical operation to be performed between a
and b
. It offers several options: "a = b", "a != b", "a > b", "a < b", "a >= b", "a <= b", "a in b", and "a not in b". Each option specifies a different type of comparison or membership check, determining the condition under which input_true
or input_false
will be returned.
The output parameter is the result of the logical operation. It will be either input_true
or input_false
, depending on whether the specified logical condition is satisfied. This output is crucial for directing the flow of a process based on dynamic conditions, allowing for adaptive and conditional logic in your AI art projects.
a
and b
are not compatible with the selected logical operation.a
and b
are of compatible types for the chosen logical operation. For example, both should be numbers for comparisons like "a > b".logic
parameter to ensure it matches one of the supported operations: "a = b", "a != b", "a > b", "a < b", "a >= b", "a <= b", "a in b", or "a not in b".RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.