Nodes/Nifty Nodes for ComfyUI/Index Combo Switch (Eager)
ComfyUI Node

Index Combo Switch (Eager)

The eager combo router

By Stibo·Created 5 months ago·Updated 2 months ago· 9
Index Combo Switch (Eager)
  • values
  • output
  • COMBO
  • STRING
  • index
choise
option1Option 1
option2Option 2
option3Option 3
option4Option 4
option5Option 5
option6Option 6
option7Option 7
option8Option 8
option9Option 9
option10Option 10
option11Option 11
option12Option 12
option13Option 13
option14Option 14
option15Option 15
option16Option 16

Nifty Index Combo Switch (Eager) is the eager twin of the named-dropdown router - same choise dropdown built from option1option16 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.

Categorynifty/logic

Inputs (18)

NameTypeDefaultDescription
choiseCOMBOWhich value input to pass through, the order matches. The first choise = value1, second choise = value2 etc.
valuesoptCOMFY_AUTOGROW_V3Auto-growing list of inputs. All inputs are always evaluated regardless of the selected index.
option1optSTRINGOption 1
option2optSTRINGOption 2
option3optSTRINGOption 3
option4optSTRINGOption 4
option5optSTRINGOption 5
option6optSTRINGOption 6
option7optSTRINGOption 7
option8optSTRINGOption 8
option9optSTRINGOption 9
option10optSTRINGOption 10
option11optSTRINGOption 11
option12optSTRINGOption 12
option13optSTRINGOption 13
option14optSTRINGOption 14
option15optSTRINGOption 15
option16optSTRINGOption 16

Outputs (4)

NameTypeDescription
outputCOMFY_MATCHTYPE_V3
COMBOCOMBO
STRINGSTRING
indexINT