ComfyUI > Nodes > ComfyUI-RvTools_v2 > Integer Switch

ComfyUI Node: Integer Switch

Class Name

Integer 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

Integer Switch Description

Facilitates dynamic integer selection in workflows by switching based on a specified condition.

Integer Switch [RvTools]:

The Integer Switch [RvTools] node is designed to facilitate decision-making processes within a node-based workflow by allowing you to switch between two integer inputs based on a specified condition. This node is particularly useful when you need to dynamically select between two integer values during execution, providing flexibility and control over the flow of data. By using this node, you can streamline your workflow, making it more efficient and adaptable to varying conditions or requirements. The primary function of this node is to evaluate a given input condition and return one of the two provided integer inputs, enabling you to implement conditional logic without complex scripting.

Integer Switch [RvTools] Input Parameters:

Input

The Input parameter is a required integer that determines which of the two optional integer inputs will be selected and returned by the node. It acts as a switch, where a value of 1 will select input1, and a value of 2 will select input2. This parameter has a default value of 1, with a minimum value of 1 and a maximum value of 2. By adjusting this parameter, you can control the flow of data and decide which integer input should be used in the subsequent steps of your workflow.

input1

The input1 parameter is an optional integer input that is selected when the Input parameter is set to 1. This parameter is marked with forceInput, meaning it must be provided if it is to be used. It allows you to specify the first integer value that can be conditionally returned by the node, providing a flexible option for dynamic data selection.

input2

The input2 parameter is an optional integer input that is selected when the Input parameter is set to 2. Similar to input1, this parameter is also marked with forceInput, requiring a value if it is to be utilized. It serves as the second integer option that can be conditionally returned, offering an alternative path for data flow based on the specified condition.

Integer Switch [RvTools] Output Parameters:

int

The int output parameter represents the integer value that is returned by the node based on the evaluation of the Input parameter. This output is crucial as it determines the integer value that will be passed on to subsequent nodes or processes in your workflow. By using this output, you can ensure that the correct integer value is utilized, maintaining the integrity and logic of your workflow.

Integer Switch [RvTools] Usage Tips:

  • Ensure that both input1 and input2 are provided when using the node, as the absence of these inputs can lead to unexpected results or errors.
  • Use the Input parameter to dynamically control which integer value is selected, allowing for flexible and adaptable workflows that can respond to changing conditions or requirements.

Integer Switch [RvTools] Common Errors and Solutions:

Missing Input: Integer Switch has no active Input

  • Explanation: This error occurs when neither input1 nor input2 is provided, or when the Input parameter is set to a value outside the allowed range (1 or 2).
  • Solution: Ensure that both input1 and input2 are supplied with valid integer values, and verify that the Input parameter is set to either 1 or 2 to select the appropriate input.

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

Integer Switch