Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically switch between image inputs based on boolean condition for flexible image processing pipeline.
The CR Image Input Switch JK node is designed to dynamically select between two different image inputs based on a boolean condition. This node is particularly useful in scenarios where you need to switch between two image sources depending on a specific condition or logic within your workflow. By leveraging this node, you can streamline your image processing pipeline, making it more flexible and adaptable to varying conditions. The primary goal of this node is to provide a seamless way to toggle between two images, ensuring that the appropriate image is used based on the given boolean value.
The boolean_value
parameter is a boolean input that determines which image will be selected. If set to True
, the node will select the image provided in the image_true
parameter. If set to False
, it will select the image provided in the image_false
parameter. The default value is False
.
The image_false
parameter is the image input that will be selected when the boolean_value
is set to False
. This parameter allows you to specify the image that should be used under the false condition.
The image_true
parameter is the image input that will be selected when the boolean_value
is set to True
. This parameter allows you to specify the image that should be used under the true condition.
The IMAGE
output is the selected image based on the boolean_value
input. If boolean_value
is True
, this output will be the image provided in the image_true
parameter. If boolean_value
is False
, this output will be the image provided in the image_false
parameter. This output ensures that the correct image is passed along the workflow based on the specified condition.
The BOOLEAN
output is the same as the input boolean_value
. This output allows you to pass the boolean condition further down the workflow, enabling additional logic or conditional operations based on the same boolean value.
boolean_value
parameter to control the flow of your image processing pipeline dynamically, allowing for more flexible and adaptable workflows.image_false
and image_true
parameters are properly set to avoid unexpected results or errors in your workflow.image_false
or image_true
) are not provided.image_false
and image_true
parameters are set with valid image inputs.boolean_value
parameter is not set to a valid boolean (True or False).boolean_value
parameter is correctly set to either True
or False
.boolean_value
.boolean_value
, image_false
, and image_true
to ensure they are correctly configured.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.