Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > comfyui-obvpm > Lazy Switch 2 Values (obvpm)

ComfyUI Node: Lazy Switch 2 Values (obvpm)

Class Name

LazySwitch2 (obvpm)

Category
obvpm/switches
Author
chanon (Account age: 5883days)
Extension
comfyui-obvpm
Latest Updated
2026-09-17
Github Stars
0.04K

How to Install comfyui-obvpm

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

Lazy Switch 2 Values (obvpm) Description

Optimize computational efficiency by executing selected logic branch, conserving resources and improving workflow performance.

LazySwitch2 (obvpm):

LazySwitch2 is a versatile node designed to optimize computational efficiency by executing only the selected branch of logic, thereby conserving resources. This node is particularly beneficial in scenarios where you need to choose between two potential paths based on a condition, ensuring that only the necessary computations are performed. By leveraging this lazy execution model, LazySwitch2 helps in reducing the computational load and improving the performance of your workflows. This node is ideal for AI artists who want to streamline their processes by avoiding unnecessary calculations, making it a valuable tool in any creative pipeline.

LazySwitch2 (obvpm) Input Parameters:

switch

The switch parameter is a boolean input that determines which branch of logic will be executed. When set to true, the node will execute the logic associated with the on_true branch; when set to false, it will execute the on_false branch. This parameter is crucial as it directly influences the path of execution, allowing you to dynamically control the flow of your workflow based on specific conditions. There are no minimum or maximum values for this parameter as it is a boolean, but its default state should be defined based on your specific use case.

on_false

The on_false parameter is an optional input that represents the value or logic to be executed when the switch parameter is set to false. This input is lazy, meaning it will only be evaluated if the switch is false, thereby saving computational resources. The impact of this parameter is significant as it defines the alternative path of execution, allowing you to specify what should happen when the primary condition is not met. The default value is typically None, indicating that no action will be taken unless explicitly defined.

on_true

The on_true parameter is an optional input that represents the value or logic to be executed when the switch parameter is set to true. Similar to on_false, this input is also lazy and will only be evaluated if the switch is true. This parameter is essential for defining the primary path of execution, enabling you to specify the desired outcome when the condition is met. The default value is usually None, meaning no action will occur unless specified.

LazySwitch2 (obvpm) Output Parameters:

value_1

The value_1 output parameter represents the result of the executed branch when the switch is set to true. This output is crucial as it provides the outcome of the primary logic path, allowing you to use this result in subsequent nodes or processes. The value is determined by the logic or data connected to the on_true input, and it will be None if the input is unconnected.

value_2

The value_2 output parameter represents the result of the executed branch when the switch is set to false. This output is equally important as it provides the outcome of the alternative logic path, enabling you to handle scenarios where the primary condition is not met. The value is derived from the logic or data connected to the on_false input, and it will be None if the input is unconnected.

LazySwitch2 (obvpm) Usage Tips:

  • Use the switch parameter to dynamically control the flow of your workflow, allowing for flexible and efficient execution paths based on real-time conditions.
  • Ensure that both on_true and on_false inputs are properly configured to avoid unexpected None outputs, which can disrupt the flow of your process.

LazySwitch2 (obvpm) Common Errors and Solutions:

Unconnected Input Error

  • Explanation: This error occurs when either the on_true or on_false input is not connected, resulting in a None output.
  • Solution: Verify that both inputs are connected to valid data or logic paths to ensure that the node can execute the desired branch correctly.

Invalid Switch Value

  • Explanation: This error happens when the switch parameter receives a non-boolean value, causing the node to malfunction.
  • Solution: Ensure that the switch parameter is always set to a boolean value (true or false) to maintain proper node functionality.

Lazy Switch 2 Values (obvpm) Related Nodes

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

Lazy Switch 2 Values (obvpm)