ComfyUI > Nodes > ComfyUI-JakeUpgrade > Image Input Switch JKšŸ‰

ComfyUI Node: Image Input Switch JKšŸ‰

Class Name

CR Image Input Switch JK

Category
šŸ‰ JK/šŸ”€ Logic
Author
jakechai (Account age: 1902days)
Extension
ComfyUI-JakeUpgrade
Latest Updated
2025-05-20
Github Stars
0.08K

How to Install ComfyUI-JakeUpgrade

Install this extension via the ComfyUI Manager by searching for ComfyUI-JakeUpgrade
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-JakeUpgrade in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Input Switch JKšŸ‰ Description

Dynamically switch between image inputs based on boolean condition for flexible image processing pipeline.

Image Input Switch JKšŸ‰:

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.

Image Input Switch JKšŸ‰ Input Parameters:

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.

image_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.

image_true

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.

Image Input Switch JKšŸ‰ Output Parameters:

IMAGE

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.

BOOLEAN

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.

Image Input Switch JKšŸ‰ Usage Tips:

  • Use the boolean_value parameter to control the flow of your image processing pipeline dynamically, allowing for more flexible and adaptable workflows.
  • Ensure that both image_false and image_true parameters are properly set to avoid unexpected results or errors in your workflow.

Image Input Switch JKšŸ‰ Common Errors and Solutions:

Missing image input

  • Explanation: One or both of the image inputs (image_false or image_true) are not provided.
  • Solution: Ensure that both image_false and image_true parameters are set with valid image inputs.

Invalid boolean value

  • Explanation: The boolean_value parameter is not set to a valid boolean (True or False).
  • Solution: Verify that the boolean_value parameter is correctly set to either True or False.

Unexpected output

  • Explanation: The output image does not match the expected image based on the boolean_value.
  • Solution: Double-check the values of boolean_value, image_false, and image_true to ensure they are correctly configured.

Image Input Switch JKšŸ‰ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-JakeUpgrade
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.