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

ComfyUI Node: Int Input Switch JKšŸ‰

Class Name

CR Int 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

Int Input Switch JKšŸ‰ Description

Facilitates conditional switching between integer inputs based on boolean value for adaptive workflows in AI art generation.

Int Input Switch JKšŸ‰:

The CR Int Input Switch JK node is designed to facilitate conditional switching between two integer inputs based on a boolean value. This node is particularly useful in scenarios where you need to dynamically select between two integer values depending on a condition, allowing for more flexible and adaptive workflows. By leveraging this node, you can streamline processes that require conditional logic, making your AI art generation more efficient and responsive to varying conditions.

Int Input Switch JKšŸ‰ Input Parameters:

boolean_value

The boolean_value parameter is a boolean input that determines which integer value will be selected. If set to True, the node will output the integer value specified by int_true; if set to False, it will output the integer value specified by int_false. This parameter is crucial for the conditional logic of the node. The default value is False.

int_false

The int_false parameter is an integer input that is selected when the boolean_value is False. This parameter allows you to define the integer value that should be used under the false condition, providing flexibility in your workflow. There are no specific minimum or maximum values for this parameter, as it depends on the context of your application.

int_true

The int_true parameter is an integer input that is selected when the boolean_value is True. Similar to int_false, this parameter allows you to define the integer value that should be used under the true condition. This ensures that you can dynamically switch between two integer values based on the boolean condition. There are no specific minimum or maximum values for this parameter, as it depends on the context of your application.

Int Input Switch JKšŸ‰ Output Parameters:

INT

The INT output is the integer value selected based on the boolean_value parameter. If boolean_value is True, the output will be the value of int_true; if boolean_value is False, the output will be the value of int_false. This output is essential for integrating the conditional logic into your workflow, allowing subsequent nodes to use the selected integer value.

BOOLEAN

The BOOLEAN output is the boolean value that was used to determine the selected integer. This output can be useful for debugging or for further conditional logic in your workflow, providing transparency and traceability in the decision-making process.

Int Input Switch JKšŸ‰ Usage Tips:

  • Use the boolean_value parameter to control the flow of your workflow dynamically, allowing for more adaptive and responsive processes.
  • Ensure that the int_false and int_true parameters are set to meaningful values that align with the conditions you are testing for, to make the most out of the conditional logic.
  • Combine this node with other logic nodes to create complex conditional workflows that can handle a variety of scenarios.

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

Invalid boolean_value

  • Explanation: This error occurs when the boolean_value parameter is not set to a valid boolean (True or False).
  • Solution: Ensure that the boolean_value parameter is correctly set to either True or False.

Missing int_false or int_true

  • Explanation: This error occurs when either the int_false or int_true parameter is not provided.
  • Solution: Make sure both int_false and int_true parameters are specified with valid integer values.

Unexpected output type

  • Explanation: This error occurs if the node outputs a value that is not of the expected type (integer).
  • Solution: Verify that the int_false and int_true parameters are set to integer values and that the boolean_value is correctly influencing the output.

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