ComfyUI > Nodes > ComfyUI-RvTools_v2 > Any Switch

ComfyUI Node: Any Switch

Class Name

Any 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

Any Switch Description

Facilitates dynamic input selection in AI art workflows based on specified conditions.

Any Switch [RvTools]:

The Any Switch [RvTools] node is a versatile component designed to facilitate decision-making processes within your AI art workflows. Its primary function is to allow you to dynamically select between two different inputs based on a specified condition, making it an essential tool for scenarios where conditional logic is required. This node is particularly beneficial for artists who need to switch between different data streams or processing paths without manually altering the workflow each time. By providing a simple yet effective mechanism to toggle between inputs, the Any Switch [RvTools] node enhances flexibility and efficiency, enabling you to create more complex and adaptive art generation processes.

Any Switch [RvTools] Input Parameters:

Input

The Input parameter is a required integer that determines which of the two optional inputs will be selected and passed through the node. It accepts values of either 1 or 2, with a default value of 1. When set to 1, the node will output the data from input1; when set to 2, it will output the data from input2. This parameter is crucial for controlling the flow of data and allows you to easily switch between different inputs based on your specific needs or conditions within your workflow.

input1

The input1 parameter is an optional input that can accept any data type. It serves as one of the two potential data streams that the node can output, depending on the value of the Input parameter. If Input is set to 1, the data provided to input1 will be the output of the node. This parameter is useful for providing one of the alternative data paths that can be dynamically selected during execution.

input2

Similar to input1, the input2 parameter is an optional input that can also accept any data type. It represents the second potential data stream that the node can output. If the Input parameter is set to 2, the data provided to input2 will be the output of the node. This parameter allows you to define an alternative data path, providing flexibility in how data is processed and outputted based on the conditions set by the Input parameter.

Any Switch [RvTools] Output Parameters:

any

The output parameter of the Any Switch [RvTools] node is simply referred to as any, reflecting its ability to handle and output any data type. The actual data outputted by the node is determined by the Input parameter, which selects between input1 and input2. This output is crucial for continuing the data flow in your workflow, allowing subsequent nodes to process the selected data stream. The flexibility of this output parameter ensures that the node can be seamlessly integrated into various workflows, regardless of the data types involved.

Any Switch [RvTools] Usage Tips:

  • Use the Input parameter to dynamically control the flow of data in your workflow, allowing for more adaptive and responsive art generation processes.
  • Consider using the Any Switch [RvTools] node in conjunction with other conditional nodes to create complex decision-making logic within your AI art projects.

Any Switch [RvTools] Common Errors and Solutions:

Invalid Input Value

  • Explanation: The Input parameter must be set to either 1 or 2. If a value outside this range is provided, the node will not function correctly.
  • Solution: Ensure that the Input parameter is set to a valid integer value of either 1 or 2.

Missing Input Data

  • Explanation: If the selected input (input1 or input2) does not have any data provided, the node will not be able to output the expected result.
  • Solution: Verify that the appropriate input parameter (input1 or input2) has been supplied with valid data before execution.

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

Any Switch