Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional routing of data through pipelines based on boolean input for dynamic workflow adaptation.
The CR Impact Pipe Input Switch JK node is designed to facilitate conditional routing of data through different pipelines based on a boolean input. This node is particularly useful in scenarios where you need to dynamically switch between two different data flows or processing paths depending on a condition. By leveraging this node, you can create more flexible and adaptive workflows, ensuring that the appropriate pipeline is utilized based on the specified boolean value. This can be especially beneficial in complex AI art generation processes where different models or data transformations might be required under different conditions.
The boolean_value
parameter is a boolean input that determines which pipeline will be selected. If set to True
, the node will route the data through the pipe_true
pipeline; if set to False
, it will route the data through the pipe_false
pipeline. The default value is False
. This parameter is crucial as it directly influences the flow of data and the subsequent processing steps.
The pipe_false
parameter is a pipeline input that is used when the boolean_value
is set to False
. This input must be connected to a valid pipeline that you want to use under the false condition. The parameter is mandatory and ensures that there is a defined path for data when the condition is not met.
The pipe_true
parameter is a pipeline input that is used when the boolean_value
is set to True
. This input must be connected to a valid pipeline that you want to use under the true condition. The parameter is mandatory and ensures that there is a defined path for data when the condition is met.
The BASIC_PIPE
output is the selected pipeline based on the boolean_value
input. If boolean_value
is True
, this output will be the same as the pipe_true
input; if boolean_value
is False
, it will be the same as the pipe_false
input. This output allows the subsequent nodes to continue processing using the chosen pipeline.
The BOOLEAN
output is the same as the boolean_value
input. This output is provided to allow downstream nodes to be aware of the condition that was used to select the pipeline. It can be useful for logging, debugging, or further conditional processing.
pipe_false
and pipe_true
are connected to valid pipelines to avoid interruptions in data flow.boolean_value
parameter to dynamically control the data flow based on real-time conditions or external inputs.pipe_false
or pipe_true
input is not connected.pipe_false
and pipe_true
are connected to valid pipelines before executing the node.boolean_value
is not a valid boolean.boolean_value
parameter is set to either True
or False
.pipe_false
and pipe_true
) for any errors or issues that might be causing the failure.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.