🎈GroupSwitcher
Flip between two node groups with one boolean
GroupSwitcher is the node you use when a workflow has grown an "either/or" branch: run A or run B, never both. It's a single boolean toggle that, from the frontend, mutes or bypasses whole swaths of your graph - flip it and one group of nodes goes quiet while the other wakes up. No outputs, no data passing through. It's pure workflow control, and it's the kind of thing people usually install rgthree for.
That's the honest frame for this node: it competes with the Fast Groups Muter/Bypasser idea that rgthree-comfy made famous (the KB calls those "a dashboard for switching whole groups off without deleting them"). LAOGOU's take is smaller - two groups, one boolean - but it's built into a pack you may already have, and sometimes "smaller" is exactly the ergonomics you want for a quick A/B swap.
How it works
The node takes one input, boolean (BOOLEAN, default true), and returns nothing - the Python side is nearly empty. All the action is in the frontend: the node surfaces two group controls (Group A and Group B), each with a right-click mode of mute or bypass. When the boolean is true, one group runs normally and the other is muted/bypassed; flip it and the roles swap.
The mute-vs-bypass choice is the part to think about, because they're not the same:
- Mute - the nodes still execute, their outputs are just ignored downstream. Good when you want state/values preserved (models stay loaded, caches warm).
- Bypass - the nodes are skipped entirely. Faster, but anything they loaded is gone until the other group runs again.
If you're switching between two model-heavy branches, bypass means the unused branch's model load cost disappears entirely - which is usually why people build A/B graphs in the first place.
The one input that matters
boolean(BOOLEAN) - the switch. Toggle it, re-queue, and the active group flips.
Installing it
It's part of Comfyui_LG_Tools:
cd ComfyUI/custom_nodes
git clone https://github.com/LAOGOU-666/Comfyui_LG_Tools.git
pip install -r requirements.txt
Or via ComfyUI Manager → "Comfyui_LG_Tools" → restart. It lives under Add Node → 🎈LAOGOU → Switch.
Common issues
- "Nothing happens when I toggle." GroupSwitcher is a frontend-driven node. On ComfyUI's new Nodes 2.0 frontend, custom interactive nodes of exactly this kind have a documented history of breaking (rgthree's comparer and bypasser hit the same wall). If toggling does nothing, the legacy canvas is the standing workaround.
- Muted vs. bypassed is confusing. Start with mute - it's safer. Only switch to bypass when the unused branch's cost actually matters and you've confirmed the flip works.
- No outputs is normal. If you expected to wire data through this node, you grabbed the wrong one. This is pure group control; MuterSwitcher in the same pack is the one with pass-through outputs.
It's a small node with one job, and if you only ever switch between two setups it's plenty. If your workflow needs a dashboard of ten groups, the pack's approach tops out here - that's when you graduate to rgthree.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| boolean | BOOLEAN | true | — |
Outputs (0)
No outputs