ComfyUI  >  Nodes  >  AegisFlow Utility Nodes >  Int Switch

ComfyUI Node: Int Switch

Class Name

Binary INT Switch

Category
AegisFlow/utils
Author
Aegis72 (Account age: 701 days)
Extension
AegisFlow Utility Nodes
Latest Updated
10/3/2024
Github Stars
0.0K

How to Install AegisFlow Utility Nodes

Install this extension via the ComfyUI Manager by searching for  AegisFlow Utility Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter AegisFlow Utility Nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Int Switch Description

Facilitates dynamic selection between two integer inputs based on a condition for streamlined decision-making in workflows.

Int Switch:

The Binary INT Switch node is designed to facilitate decision-making processes within your workflow by selecting between two integer inputs based on a specified condition. This node is particularly useful when you need to dynamically choose between two values, allowing for more flexible and adaptive workflows. By leveraging this node, you can streamline your operations and ensure that the appropriate value is selected based on the given input condition. Additionally, the node provides a convenient link to a Discord community for further support and interaction.

Int Switch Input Parameters:

Input

This is the primary input parameter that determines which of the two integer values will be selected. It accepts an integer value with a minimum of 1 and a maximum of 2. The default value is set to 1. When the value is 1, the node will select the first integer input (int1); when the value is 2, it will select the second integer input (int2).

int1

This is an optional integer input parameter that is selected when the Input parameter is set to 1. It is a required input if you want to use the first integer value in your decision-making process.

int2

This is an optional integer input parameter that is selected when the Input parameter is set to 2. It is a required input if you want to use the second integer value in your decision-making process.

Int Switch Output Parameters:

choice

This output parameter returns the selected integer value based on the Input parameter. If Input is 1, it returns the value of int1; if Input is 2, it returns the value of int2. This allows you to dynamically use the chosen integer in subsequent nodes or operations within your workflow.

discord

This output parameter provides a string containing a Discord invite link (https://discord.com/invite/74cP9rarNs). This can be useful for users who need additional support or wish to join the community for further interaction and assistance.

Int Switch Usage Tips:

  • Ensure that both int1 and int2 are provided if you plan to switch between two values dynamically. This will prevent any issues related to missing inputs.
  • Use the Input parameter to control the flow of your workflow dynamically. For example, you can set it based on the results of previous nodes or conditions to make your workflow more adaptive.

Int Switch Common Errors and Solutions:

Missing required input: int1 or int2

  • Explanation: This error occurs when the Input parameter is set to 1 or 2, but the corresponding int1 or int2 parameter is not provided.
  • Solution: Ensure that you provide values for both int1 and int2 if you plan to use the Binary INT Switch node. Double-check your inputs to make sure they are correctly specified.

Invalid Input value

  • Explanation: This error occurs when the Input parameter is set to a value outside the allowed range of 1 to 2.
  • Solution: Verify that the Input parameter is set to either 1 or 2. Adjust the value to fall within the specified range to ensure proper functionality.

Int Switch Related Nodes

Go back to the extension to check out more related nodes.
AegisFlow Utility Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.