ComfyUI > Nodes > ComfyUI-RvTools_v2 > Latent Switch

ComfyUI Node: Latent Switch

Class Name

Latent 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

Latent Switch Description

Facilitates dynamic selection between two latent inputs based on a specified condition.

Latent Switch [RvTools]:

The Latent Switch [RvTools] node is designed to facilitate the selection between two latent inputs based on a specified condition. This node is particularly useful in scenarios where you need to dynamically choose between different latent representations during the execution of a workflow. By providing a simple mechanism to switch between inputs, it enhances flexibility and control over the data flow within your AI art generation process. The primary goal of this node is to streamline decision-making processes by allowing you to specify which latent input to use, thereby optimizing the workflow for various creative tasks.

Latent Switch [RvTools] Input Parameters:

Input

The Input parameter is an integer that determines which latent input will be selected for output. It accepts values of either 1 or 2, with a default value of 1. When set to 1, the node outputs the first latent input (input1), and when set to 2, it outputs the second latent input (input2). This parameter is crucial for directing the flow of data and ensuring that the correct latent representation is used in subsequent processes.

input1

The input1 parameter is an optional latent input that the node can output if the Input parameter is set to 1. It is a required input when you want to use the first latent representation. This parameter allows you to provide a specific latent representation that can be dynamically selected based on the Input parameter.

input2

The input2 parameter is an optional latent input that the node can output if the Input parameter is set to 2. Similar to input1, it is a required input when you want to use the second latent representation. This parameter provides an alternative latent representation that can be chosen dynamically, offering flexibility in the workflow.

Latent Switch [RvTools] Output Parameters:

latent

The latent output parameter is the selected latent representation based on the Input parameter. It outputs either input1 or input2, depending on the value of Input. This output is crucial for continuing the workflow with the appropriate latent data, ensuring that the subsequent processes receive the correct input for further manipulation or generation tasks.

Latent Switch [RvTools] Usage Tips:

  • Ensure that both input1 and input2 are provided when using the node, even if you plan to use only one of them, to avoid potential errors.
  • Use the Input parameter to dynamically switch between different latent representations based on specific conditions or requirements in your workflow.

Latent Switch [RvTools] Common Errors and Solutions:

Missing Input: Multi Latent Switch has no active Input

  • Explanation: This error occurs when neither input1 nor input2 is provided to the node.
  • Solution: Ensure that at least one of the latent inputs (input1 or input2) is connected to the node to avoid this error.

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

Latent Switch