Index Combo Switch (Eager)
The eager combo router
- values
- output
- COMBO
- STRING
- index
Nifty Index Combo Switch (Eager) is the eager twin of the named-dropdown router - same choise dropdown built from option1–option16 labels, same auto-growing values list, same four outputs (output, COMBO, STRING, index). The one difference: every branch is evaluated on every run, not just the one the dropdown selects.
That's a meaningful sentence, so let's be clear what it costs. If your values are all cheap - alternative prompts, precomputed images, parameter sets - eager is harmless and might even be what you want. If any of them is a full sampling or encoding path, eager will run all of them. A 16-way switch with heavy branches becomes a memory bomb in one click.
When you'd deliberately reach for it
Same logic as every eager variant in the Nifty suite: you need the unselected branches to execute anyway. The classic case is side effects - one branch saves a file or writes metadata regardless of what's routed onward. Another is caching: pre-run the branch you'll switch to next so the change is instant. A third is validation: you want every branch exercised and error-checked on every run, even the ones not in use.
The lazy version is the right default for routing. Eager exists for the "I need all of it to happen" situations, and it does that job without you having to fake it with parallel wiring and manual merging.
Install
Standard: ComfyUI Manager → search "Nifty Nodes", or
cd ComfyUI/custom_nodes
git clone https://github.com/Stibo/comfyui-nifty-nodes
Restart ComfyUI, keep ComfyUI current (v3 API). No extra dependencies. Choose this one deliberately and only when you know the unselected branches must run - otherwise the lazy combo switch does the same job at a fraction of the compute.
Inputs (18)
| Name | Type | Default | Description |
|---|---|---|---|
| choise | COMBO | Which value input to pass through, the order matches. The first choise = value1, second choise = value2 etc. | |
| valuesopt | COMFY_AUTOGROW_V3 | Auto-growing list of inputs. All inputs are always evaluated regardless of the selected index. | |
| option1opt | STRING | Option 1 | — |
| option2opt | STRING | Option 2 | — |
| option3opt | STRING | Option 3 | — |
| option4opt | STRING | Option 4 | — |
| option5opt | STRING | Option 5 | — |
| option6opt | STRING | Option 6 | — |
| option7opt | STRING | Option 7 | — |
| option8opt | STRING | Option 8 | — |
| option9opt | STRING | Option 9 | — |
| option10opt | STRING | Option 10 | — |
| option11opt | STRING | Option 11 | — |
| option12opt | STRING | Option 12 | — |
| option13opt | STRING | Option 13 | — |
| option14opt | STRING | Option 14 | — |
| option15opt | STRING | Option 15 | — |
| option16opt | STRING | Option 16 | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| output | COMFY_MATCHTYPE_V3 | — |
| COMBO | COMBO | — |
| STRING | STRING | — |
| index | INT | — |