ComfyUI > Nodes > ComfyUI-RvTools_v2 > Float Switch

ComfyUI Node: Float Switch

Class Name

Float Switch [RvTools]

Category
🫦 RvTools II/ Switches
Author
r-vage (Account age: 317days)
Extension
ComfyUI-RvTools_v2
Latest Updated
2026-03-27
Github Stars
0.02K

How to Install ComfyUI-RvTools_v2

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

The Float Switch node enables dynamic selection between two float inputs based on a condition.

Float Switch [RvTools]:

The Float Switch node from RvTools is designed to facilitate decision-making processes within your AI art workflows by allowing you to dynamically select between two floating-point inputs based on a specified condition. This node is particularly useful when you need to toggle between different numerical values or settings, enabling more flexible and adaptive configurations in your projects. By providing a simple mechanism to switch between inputs, the Float Switch node enhances the versatility of your workflow, allowing for more complex and responsive designs without requiring extensive manual adjustments.

Float Switch [RvTools] Input Parameters:

Input

This parameter determines which of the two optional floating-point inputs will be selected and returned by the node. It accepts an integer value with a default of 1, and it can be set to either 1 or 2. When set to 1, the node will output the value of input1; when set to 2, it will output the value of input2. This parameter is crucial for directing the flow of data through your node network, allowing you to control which input is active based on your specific needs.

input1

This is an optional floating-point input that the node can output if the Input parameter is set to 1. It is a required input when you want to use it, meaning you must provide a value for it to be considered in the node's execution. This input allows you to specify a floating-point number that can be dynamically selected based on the Input parameter, providing flexibility in your workflow.

input2

Similar to input1, this is another optional floating-point input that the node can output if the Input parameter is set to 2. It also requires a value to be provided when you intend to use it. This input offers an alternative floating-point number that can be chosen, enabling you to switch between different numerical values as needed in your project.

Float Switch [RvTools] Output Parameters:

float

The output parameter of the Float Switch node is a single floating-point number, which is determined by the Input parameter. Depending on whether Input is set to 1 or 2, the node will output the value of input1 or input2, respectively. This output is essential for passing the selected floating-point value to subsequent nodes in your workflow, allowing for dynamic adjustments and configurations based on the conditions you set.

Float Switch [RvTools] Usage Tips:

  • Use the Input parameter to easily toggle between two different floating-point values, which can be particularly useful for testing different configurations or settings in your AI art projects.
  • Ensure that both input1 and input2 are provided with valid floating-point numbers to avoid execution errors and to make full use of the node's switching capabilities.

Float Switch [RvTools] Common Errors and Solutions:

Missing Input: Float Switch has no active Input

  • Explanation: This error occurs when neither input1 nor input2 is provided with a value, or when the Input parameter is set to a value outside the allowed range (1 or 2).
  • Solution: Ensure that you provide valid floating-point numbers for both input1 and input2, and verify that the Input parameter is set to either 1 or 2 to correctly select the desired input.

Float Switch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RvTools_v2
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