2🐕Choice Switch
A manual, index-based switch for up to six inputs
- input01
- input02
- input03
- input04
- input05
- input06
- output
Sometimes "pick whichever one's connected" isn't what you want - you want "pick input 3, specifically, until I tell you otherwise." EG_XZ_QH ("Choice Switch") is that: an explicit, index-driven switch for up to six inputs of any type, so you can toggle between generation paths (two different upscalers, three candidate prompts, a couple of alternate LoRA stacks) with one dropdown instead of rewiring.
How it works
Six optional inputs (input01 through input06), all typed * - meaning any ComfyUI type, IMAGE, MODEL, STRING, LATENT, whatever you connect. A choice dropdown (values 1 through 6) selects which of those six gets forwarded to the single output slot. Unlike its sibling EG_WXZ_QH ("Unrestricted switching"), which auto-selects the first connected input in order, this node ignores connection order entirely and just does what choice says - if you set choice to 4 and input04 isn't connected, that's on you, not the node guessing a fallback. It's the same underlying idea as the "Context Switch"-style nodes elsewhere in the ecosystem (rgthree-comfy has one that branches on the first non-null input instead), just with an explicit index rather than an implicit priority order.
The inputs and outputs that matter
input01–input06(*, all optional) - wire your candidate branches here, in any order; the node doesn't care which slots are filled.choice(enum1–6, optional) - which input number gets forwarded.
Output is a single output (*) - whatever type the chosen input happened to be.
How to install it
Search Comfyui-ergouzi-Nodes in ComfyUI Manager, or clone it directly:
cd ComfyUI/custom_nodes
git clone https://github.com/11dogzi/Comfyui-ergouzi-Nodes.git
Restart ComfyUI. As with the rest of this pack, the author's README states this English-named repo is frozen - development moved to a Chinese-named sibling pack (Comfyui-ergouzi-DGNJD) that the author calls more feature-complete.
Common issues & troubleshooting
Output is empty even though something's wired. If choice points at an input number that isn't actually connected, the node has nothing to forward - check that the number in choice matches a slot you've genuinely wired, not just any slot.
Wildcard typing hides a type mismatch until later. Because all six inputs and the output accept *, ComfyUI won't warn you at graph-build time if input01 is an IMAGE and input02 is a LATENT - the node happily accepts either. If you switch choice between slots that hold different types, expect the error (if any) to surface on whatever downstream node actually tries to consume the output, not here.
You wanted automatic fallback instead of manual selection. If the goal is "use whichever of these is actually connected, I don't want to flip a dropdown every time," this is the wrong node - use EG_WXZ_QH instead, which auto-selects the first connected input.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| input01opt | * | — | |
| input02opt | * | — | |
| input03opt | * | — | |
| input04opt | * | — | |
| input05opt | * | — | |
| input06opt | * | — | |
| choiceopt | COMBO | 6 options: 1, 2, 3, 4, 5, 6 |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | * | — |