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 Case Switch (auto) (obvpm)

ComfyUI Node: Lazy Case Switch (auto) (obvpm)

Class Name

LazyCaseSwitchAuto (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 Case Switch (auto) (obvpm) Description

Dynamic branch selection based on connected node names, lazy evaluation for optimized performance and automated case name generation.

LazyCaseSwitchAuto (obvpm):

The LazyCaseSwitchAuto node is designed to dynamically select a branch based on the names of the nodes connected to it. This node automatically generates a list of case names from the connected branches, allowing for a more flexible and automated workflow. It operates with a lazy evaluation strategy, meaning that only the selected branch is executed, which optimizes performance by skipping the execution of unselected branches. This feature is particularly useful in scenarios where you want to minimize computational overhead by ensuring that only necessary operations are performed. The node starts with a single empty input and automatically adds more as each one is filled, maintaining one spare input at all times. If an input is unplugged, the node closes the gap, ensuring efficient management of connections. This node is ideal for users who prefer an automated approach to managing case names, as opposed to manually writing them.

LazyCaseSwitchAuto (obvpm) Input Parameters:

cases

The cases parameter is a string input that is automatically populated with the names of the connected branches. This parameter is crucial as it determines the available options for branch selection. The list of case names is filled in by the UI, and each branch is named after the node feeding it. This parameter supports multiline input, allowing for multiple case names to be specified. The default value is an empty string, and it is updated dynamically based on the connections made to the node. This setup ensures that the node can adapt to changes in the network structure without requiring manual updates to the case list.

LazyCaseSwitchAuto (obvpm) Output Parameters:

value

The value output parameter represents the result of the selected branch. It outputs the value of the branch that matches the selected case name. If no branch matches the selected case name and no fallback is connected, the output will be None. This output is essential for directing the flow of data based on the dynamic selection of branches, allowing for conditional execution paths within your node network.

LazyCaseSwitchAuto (obvpm) Usage Tips:

  • To maximize efficiency, ensure that only necessary branches are connected to the node, as unselected branches will not execute, saving computational resources.
  • Use the node in scenarios where the case names are subject to change or are numerous, as it automatically manages the case list based on connections, reducing manual input errors.

LazyCaseSwitchAuto (obvpm) Common Errors and Solutions:

"LazyCaseSwitch: '<selected>' matches no case line and no fallback is connected; outputting None"

  • Explanation: This error occurs when the selected case name does not match any of the case names in the cases parameter, and there is no fallback branch connected.
  • Solution: Ensure that the selected case name is correctly specified and matches one of the case names in the cases parameter. Alternatively, connect a fallback branch to handle cases where no match is found.

Lazy Case Switch (auto) (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 Case Switch (auto) (obvpm)