Extensions/ComfyUI-SwitchPathLazy
ComfyUI Extension

ComfyUI-SwitchPathLazy

Efficient lazy path switch for ComfyUI. Skips execution of the inactive branch entirely using native lazy evaluation. Includes live status display.

By ashtar1984·Created 8 months ago·Updated 8 months ago· 0
ashtar1984/ComfyUI-SwitchPathLazy
Nodes2
On cloudLocal install
Categoryflow control
Stars0
Updated8 months ago
Readme

Switch Path (Lazy)

A simple and efficient path switch for ComfyUI using native lazy evaluation.

Features

  • Chooses between two paths based on a boolean state.
  • The inactive branch is never executed → perfect for skipping heavy nodes like Ollama Generate, API calls, etc.
  • Live display on the node showing current state and active path.
  • No external dependencies (works with vanilla ComfyUI).

Installation

  1. Go to your ComfyUI/custom_nodes/ folder.
  2. Clone this repo:
    git clone https://github.com/ashtar1984/ComfyUI-SwitchPathLazy.git