Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional switching between integer inputs based on boolean value for adaptive workflows in AI art generation.
The CR Int Input Switch JK node is designed to facilitate conditional switching between two integer inputs based on a boolean value. This node is particularly useful in scenarios where you need to dynamically select between two integer values depending on a condition, allowing for more flexible and adaptive workflows. By leveraging this node, you can streamline processes that require conditional logic, making your AI art generation more efficient and responsive to varying conditions.
The boolean_value
parameter is a boolean input that determines which integer value will be selected. If set to True
, the node will output the integer value specified by int_true
; if set to False
, it will output the integer value specified by int_false
. This parameter is crucial for the conditional logic of the node. The default value is False
.
The int_false
parameter is an integer input that is selected when the boolean_value
is False
. This parameter allows you to define the integer value that should be used under the false condition, providing flexibility in your workflow. There are no specific minimum or maximum values for this parameter, as it depends on the context of your application.
The int_true
parameter is an integer input that is selected when the boolean_value
is True
. Similar to int_false
, this parameter allows you to define the integer value that should be used under the true condition. This ensures that you can dynamically switch between two integer values based on the boolean condition. There are no specific minimum or maximum values for this parameter, as it depends on the context of your application.
The INT
output is the integer value selected based on the boolean_value
parameter. If boolean_value
is True
, the output will be the value of int_true
; if boolean_value
is False
, the output will be the value of int_false
. This output is essential for integrating the conditional logic into your workflow, allowing subsequent nodes to use the selected integer value.
The BOOLEAN
output is the boolean value that was used to determine the selected integer. This output can be useful for debugging or for further conditional logic in your workflow, providing transparency and traceability in the decision-making process.
boolean_value
parameter to control the flow of your workflow dynamically, allowing for more adaptive and responsive processes.int_false
and int_true
parameters are set to meaningful values that align with the conditions you are testing for, to make the most out of the conditional logic.Invalid boolean_value
boolean_value
parameter is not set to a valid boolean (True or False).boolean_value
parameter is correctly set to either True
or False
.Missing int_false or int_true
int_false
or int_true
parameter is not provided.int_false
and int_true
parameters are specified with valid integer values.Unexpected output type
int_false
and int_true
parameters are set to integer values and that the boolean_value
is correctly influencing the output.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.