ComfyUI > Nodes > ComfyUI_XISER_Nodes > Int Switch

ComfyUI Node: Int Switch

Class Name

XIS_IntSwitch

Category
XISER_Nodes/Logic
Author
grinlau18 (Account age: 944days)
Extension
ComfyUI_XISER_Nodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI_XISER_Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_XISER_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_XISER_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
  • 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 Switch Description

XIS_IntSwitch controls integer data flow based on a boolean condition in node-based systems.

Int Switch:

The XIS_IntSwitch node is designed to function as a logical switch for integer values within a node-based system. Its primary purpose is to control the flow of integer data based on a boolean condition, effectively acting as a gatekeeper that either allows the integer input to pass through or blocks it, depending on the state of the switch. This node is particularly useful in scenarios where conditional logic is required to determine whether an integer value should be processed or ignored. By providing a straightforward mechanism to toggle the passage of integer data, the XIS_IntSwitch node enhances the flexibility and control within your node-based workflows, making it an essential tool for managing integer data flow in a logical and efficient manner.

Int Switch Input Parameters:

enable

The enable parameter is a boolean input that determines whether the integer switch is active. When set to True, the switch is enabled, allowing the integer input to pass through to the output. Conversely, when set to False, the switch is disabled, and the output will be None, effectively blocking the integer input. This parameter is crucial for controlling the flow of integer data based on specific conditions or logic within your workflow. The default value for this parameter is True, meaning the switch is active by default.

int_input

The int_input parameter is an optional integer input that represents the data you wish to pass through the switch. If the enable parameter is set to True, this integer value will be outputted; otherwise, the output will be None. This parameter allows you to specify the integer data that is subject to the conditional logic of the switch, providing flexibility in managing integer data flow. There are no specific minimum or maximum values defined for this parameter, as it is designed to accommodate any integer value.

Int Switch Output Parameters:

int_output

The int_output parameter is the result of the XIS_IntSwitch node's execution. It outputs the integer value provided in the int_input parameter if the enable parameter is set to True. If the enable parameter is False, the output will be None, indicating that the integer input has been blocked. This output is essential for determining whether the integer data has been allowed to pass through the switch, providing a clear indication of the node's logical decision based on the input parameters.

Int Switch Usage Tips:

  • Use the enable parameter to dynamically control the flow of integer data in your workflow, allowing you to implement conditional logic based on specific criteria or events.
  • Consider using the XIS_IntSwitch node in conjunction with other logical nodes to create complex decision-making processes that require the selective passage of integer data.

Int Switch Common Errors and Solutions:

Missing int_input when enable is True

  • Explanation: If the enable parameter is set to True but no int_input is provided, the node may not function as expected since there is no integer data to pass through.
  • Solution: Ensure that an integer value is provided for the int_input parameter when the enable parameter is set to True.

Invalid int_input type

  • Explanation: Providing a non-integer value for the int_input parameter can lead to unexpected behavior or errors.
  • Solution: Verify that the value provided for the int_input parameter is a valid integer to ensure proper node execution.

Int Switch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_XISER_Nodes
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 Models, enabling artists to harness the latest AI tools to create incredible art.