Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically switch between latent inputs based on boolean condition for conditional logic in AI art generation workflows.
The CR Latent Input Switch JK node is designed to dynamically switch between two latent inputs based on a boolean condition. This node is particularly useful in scenarios where you need to conditionally process different latent representations within your AI art generation workflow. By leveraging this node, you can create more complex and conditional logic in your projects, allowing for greater flexibility and control over the generated outputs. The primary function of this node is to evaluate a boolean value and return one of the two latent inputs accordingly, making it an essential tool for artists looking to implement conditional logic in their creative processes.
The boolean_value
parameter is a boolean input that determines which latent input will be selected. If the value is True
, the node will output the latent_true
input; if False
, it will output the latent_false
input. This parameter allows you to control the flow of your latent data based on conditional logic. The default value is False
.
The latent_false
parameter is the latent input that will be selected if the boolean_value
is False
. This input represents one of the two possible latent states that can be conditionally processed. There are no specific minimum or maximum values for this parameter, as it is a latent representation.
The latent_true
parameter is the latent input that will be selected if the boolean_value
is True
. This input represents the alternative latent state that can be conditionally processed. Similar to latent_false
, there are no specific minimum or maximum values for this parameter, as it is a latent representation.
The LATENT
output is the selected latent input based on the evaluation of the boolean_value
parameter. If boolean_value
is True
, the latent_true
input is returned; otherwise, the latent_false
input is returned. This output allows you to conditionally pass through one of the two latent representations for further processing in your workflow.
The BOOLEAN
output is the same as the boolean_value
input. It is returned to provide feedback on the condition that was evaluated, allowing you to use this information in subsequent nodes or logic within your workflow.
boolean_value
parameter to create conditional branches in your workflow, enabling more complex and dynamic art generation processes.Invalid input type for boolean_value
boolean_value
parameter is not provided as a boolean.boolean_value
parameter is set to either True
or False
.Missing latent input
latent_false
or latent_true
inputs are not provided.latent_false
and latent_true
inputs are connected to valid latent representations.Unexpected output type
LATENT
or BOOLEAN
types.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.