Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically toggle between two input images based on a boolean condition for flexible image processing workflows.
The Image Input Switch node is designed to streamline your workflow by allowing you to dynamically select between two input images based on a boolean condition. This node is particularly useful when you need to toggle between different image sources or apply conditional logic to your image processing pipeline. By leveraging this node, you can create more flexible and adaptive image processing workflows, ensuring that the appropriate image is used based on the specified condition.
This parameter accepts the first image input. It serves as one of the two potential images that can be selected based on the boolean condition. The image should be in a compatible format that the node can process.
This parameter accepts the second image input. Similar to image_a
, this image is the alternative option that can be selected if the boolean condition is not met. Ensure that this image is also in a compatible format.
This boolean parameter determines which image will be selected. If set to True
, the node will output image_a
. If set to False
, the node will output image_b
. This parameter allows for dynamic switching between the two images based on your specific needs.
The output is a single image, which will be either image_a
or image_b
depending on the value of the boolean parameter. This output can then be used in subsequent nodes for further processing or analysis.
image_a
and image_b
are in the same format and resolution to avoid any compatibility issues when switching between them.image_a
and image_b
are not in a compatible format.image_a
and image_b
to ensure the node functions correctly.True
or False
to control the image selection.© Copyright 2024 RunComfy. All Rights Reserved.