ComfyUI > Nodes > ComfyUI_XISER_Nodes > Float Switch

ComfyUI Node: Float Switch

Class Name

XIS_FloatSwitch

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

Float Switch Description

XIS_FloatSwitch controls floating-point data flow in node networks using a boolean switch.

Float Switch:

The XIS_FloatSwitch node is designed to act as a conditional gate for floating-point numbers, allowing you to control the flow of data based on a simple boolean switch. This node is particularly useful in scenarios where you need to selectively pass a floating-point value through a network of nodes, depending on certain conditions or states. By using this node, you can efficiently manage and streamline the data processing pipeline, ensuring that only relevant data is processed further. The primary goal of the XIS_FloatSwitch is to provide a straightforward mechanism to enable or disable the passage of a floating-point input, thereby offering flexibility and control in complex node-based workflows.

Float Switch Input Parameters:

enable

The enable parameter is a boolean input that determines whether the floating-point input should be passed through the node. When set to True, the node allows the float_input to be outputted; when set to False, the node outputs None, effectively blocking the passage of the floating-point data. This parameter acts as the main control switch for the node, providing a simple yet powerful way to manage data flow. The default value is True, meaning the switch is enabled by default.

float_input

The float_input parameter is an optional floating-point number that you wish to pass through the node. If the enable parameter is set to True, this input is outputted as the node's result. If enable is False, the node outputs None regardless of the value of float_input. This parameter allows you to specify the floating-point data that is conditionally processed based on the state of the enable switch.

Float Switch Output Parameters:

float_output

The float_output is the result of the node's execution, which is either the value of float_input or None, depending on the state of the enable parameter. If enable is True, the float_output will be the same as the float_input, allowing the data to pass through. If enable is False, the float_output will be None, effectively stopping the data from proceeding further in the node network. This output is crucial for controlling the flow of floating-point data in your node-based system.

Float Switch Usage Tips:

  • Use the enable parameter to dynamically control the flow of floating-point data based on conditions in your workflow. This can be particularly useful in scenarios where certain calculations or processes should only occur under specific circumstances.
  • Consider setting the enable parameter to False when you want to temporarily halt the processing of floating-point data without removing or disconnecting nodes from your network. This can help in debugging or testing different parts of your setup.

Float Switch Common Errors and Solutions:

Invalid float_input value

  • Explanation: If the float_input is not a valid floating-point number, the node may not function as expected.
  • Solution: Ensure that the float_input is a valid floating-point number. If necessary, use conversion nodes to transform other data types into a float before connecting them to this node.

Enable parameter not set correctly

  • Explanation: If the enable parameter is not set correctly, the node may not output the desired result.
  • Solution: Double-check the enable parameter to ensure it is set to True if you want the float_input to pass through, or False if you want to block it. Adjust the parameter based on your specific needs in the workflow.

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

Float Switch