ComfyUI > Nodes > ComfyUI_XISER_Nodes > Boolean Switch

ComfyUI Node: Boolean Switch

Class Name

XIS_BooleanSwitch

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

Boolean Switch Description

XIS_BooleanSwitch controls boolean data flow based on an enabling switch for conditional logic.

Boolean Switch:

The XIS_BooleanSwitch node is designed to act as a logical gate that controls the flow of boolean data within a node-based system. Its primary function is to determine whether a boolean value should be passed through or not, based on the state of an enabling switch. This node is particularly useful in scenarios where conditional logic is required, allowing you to dynamically control the output based on specific conditions. By using this node, you can streamline workflows that depend on boolean logic, making it easier to manage complex decision-making processes within your projects.

Boolean Switch Input Parameters:

enable

The enable parameter is a boolean input that acts as the control switch for the node. When set to True, the node allows the boolean input to pass through to the output. If set to False, the node outputs None, effectively blocking the boolean input. This parameter is crucial for determining whether the node is active or inactive, and it defaults to True, meaning the switch is enabled by default.

boolean_input

The boolean_input parameter is an optional boolean value that the node processes. If the enable parameter is set to True, this input is passed to the output. If enable is False, the output will be None, regardless of the value of boolean_input. This parameter allows for flexible input handling, as it can be left unconnected if not needed.

Boolean Switch Output Parameters:

boolean_output

The boolean_output is the result of the node's execution. If the enable parameter is True, the boolean_output will reflect the value of the boolean_input. If enable is False, the output will be None. This output is essential for integrating the node's logic into larger workflows, as it determines the flow of boolean data based on the node's configuration.

Boolean Switch Usage Tips:

  • Use the enable parameter to control the flow of boolean data dynamically, allowing for conditional logic in your workflows.
  • Consider leaving the boolean_input unconnected if you want the node to act as a simple on/off switch without processing any input.

Boolean Switch Common Errors and Solutions:

Missing boolean_input

  • Explanation: The node may not function as expected if the boolean_input is not provided when enable is set to True.
  • Solution: Ensure that the boolean_input is connected or set a default value to avoid unexpected behavior.

Unexpected None Output

  • Explanation: If the output is None when you expect a boolean value, it is likely because the enable parameter is set to False.
  • Solution: Check the enable parameter to ensure it is set to True if you want the boolean input to pass through.

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

Boolean Switch