Visit ComfyUI Online for ready-to-use ComfyUI environment
Handle boolean values flexibly, toggle, and interpret boolean values for dynamic AI art project logic flow.
The BooleanPrimitive node is designed to handle boolean values in a flexible and intuitive manner. It allows you to input a boolean value and optionally reverse it, providing both the boolean result and its string representation. This node is particularly useful in scenarios where you need to manipulate or evaluate boolean conditions dynamically within your AI art projects. By offering a straightforward way to toggle and interpret boolean values, it enhances the control and logic flow in your creative processes.
This parameter represents the initial boolean value that you want to work with. It can be either True
or False
, with the default being False
. This value serves as the base input for the node's operations.
This parameter determines whether the input boolean value should be reversed. If set to True
, the node will invert the value
parameter (i.e., True
becomes False
and vice versa). The default setting for this parameter is False
. This option is useful when you need to quickly toggle the boolean state without altering the original input.
This output provides the final boolean value after considering the reverse
parameter. It will be either True
or False
, depending on the initial value
and whether it was reversed. This output is essential for further boolean logic operations in your workflow.
This output gives the string representation of the final boolean value. It will be either "True"
or "False"
, matching the BOOLEAN output. This string output is useful for logging, debugging, or any scenario where a textual representation of the boolean value is required.
reverse
parameter to easily toggle boolean values without changing the original input, which can be particularly handy in conditional logic scenarios.value
and reverse
parameters are set to either True
or False
.© Copyright 2024 RunComfy. All Rights Reserved.