ComfyUI > Nodes > ComfyUI-RvTools_v2 > String Multi-Switch

ComfyUI Node: String Multi-Switch

Class Name

String Multi-Switch [RvTools]

Category
🫦 RvTools II/ Multi-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

String Multi-Switch Description

The node selects and returns the first non-null string from up to five input options.

String Multi-Switch [RvTools]:

The String Multi-Switch [RvTools] node is designed to streamline the process of selecting and returning a single string from multiple input options. This node is particularly useful when you have several potential string inputs and need to dynamically choose one based on availability. Its primary function is to evaluate up to five optional string inputs and return the first non-null input it encounters. This capability is beneficial in scenarios where you want to prioritize certain string inputs over others without manually checking each one. By automating this selection process, the node enhances workflow efficiency and reduces the complexity of managing multiple string inputs.

String Multi-Switch [RvTools] Input Parameters:

input1

This parameter represents the first optional string input. It is the highest priority input, meaning if it is provided and not null, it will be the one returned by the node. There are no minimum, maximum, or default values as it is an optional input.

input2

This parameter is the second optional string input. It is considered only if input1 is null. Like input1, it does not have minimum, maximum, or default values, and its presence is optional.

input3

This parameter serves as the third optional string input. It is evaluated if both input1 and input2 are null. It is optional and does not have predefined constraints.

input4

This parameter is the fourth optional string input. It is used if input1, input2, and input3 are all null. It remains optional with no specific constraints.

input5

This parameter is the fifth and final optional string input. It is considered only if all previous inputs (input1 to input4) are null. It is optional and lacks predefined constraints.

String Multi-Switch [RvTools] Output Parameters:

string

The output parameter string is the selected string from the provided inputs. It represents the first non-null string input encountered by the node. If all inputs are null, the output will be None. This output is crucial for determining which input string is active and should be used in subsequent processes.

String Multi-Switch [RvTools] Usage Tips:

  • Ensure that the most critical string input is assigned to input1 to take advantage of the node's priority-based selection.
  • Use this node to simplify workflows where multiple string inputs are possible, but only one should be active at a time.
  • Consider using this node in conjunction with other nodes that generate or modify strings to dynamically manage string data flow.

String Multi-Switch [RvTools] Common Errors and Solutions:

Missing Input: Multi String Switch has no active Input

  • Explanation: This error occurs when all input parameters (input1 to input5) are null, resulting in no active string to return.
  • Solution: Ensure that at least one of the input parameters is provided with a valid string value to avoid this error.

String Multi-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.

String Multi-Switch