easy conditioningIndexSwitch
Pick one of several conditionings by number
- cond0
- cond1
- cond2
- cond3
- cond4
- cond5
- cond6
- cond7
- cond8
- cond9
- cond10
- cond11
- cond12
- cond13
- cond14
- cond15
- cond16
- cond17
- cond18
- cond19
- conditioning
A multi-way selector, specifically for CONDITIONING. You wire in several encoded prompts and a number, and it passes through the one at that number. Index 0 hands you cond0, index 3 hands you cond3. It's the same idea as Easy-Use's general anythingIndexSwitch, but typed to conditioning - which means clean, unambiguous connections when what you're juggling is prompt encodings rather than arbitrary values.
Where this earns its keep: you've encoded three or four different prompts (a portrait style, a landscape style, an abstract style) and you want to flip between them without dragging wires around. Set the index and the sampler gets that one. Better yet, drive the index from something upstream and the prompt selection becomes automatic - cycle styles across a batch, or pick a conditioning based on a loop counter.
How it works
It takes up to twenty optional CONDITIONING inputs and one index, and forwards the connected conditioning that matches the index. You don't have to fill all the slots; only wire the ones you'll use. Because it's strongly typed to conditioning, the connections are checked - no wildcard guesswork about whether the thing on the wire is the right shape.
The inputs and outputs that matter
index(INT, 0–9) - which conditioning to pass through. Set by hand or fed from an upstream node.cond0 … cond19(CONDITIONING, all optional) - your candidate encoded prompts. Connect as many as you need.conditioning(output) - the selected one, ready to plug into a sampler's positive or negative input.
One quirk to plan around: the input slots go up to cond19, but the index widget only reaches 9. If you're selecting manually you can address cond0–cond9; the higher slots need the index driven from an integer source.
How to install it
Comes with ComfyUI-Easy-Use. ComfyUI Manager: search ComfyUI-Easy-Use, install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/yolain/ComfyUI-Easy-Use
then install.bat (Windows) or pip install -r ComfyUI-Easy-Use/requirements.txt, and restart. No models needed.
Common issues & troubleshooting
Off-by-one. Zero-indexed - cond0 is the first slot. If the wrong style comes out, check whether you're counting from 0 or 1. This is the single most common stumble with any index switch.
Index points at an empty slot. If the index lands on a cond input you never connected, there's nothing to pass through and you'll get a missing-input error. Make sure every index value you'll actually hit maps to a slot you've wired.
Can't reach the upper conditionings by hand. The index widget caps at 9 while the inputs go to 19 - feed the index from an integer node to select cond10+.
Needs to be encoded conditioning, not text. These inputs want CONDITIONING, which is the output of a CLIP encode or an easy loader's conditioning output - not a raw prompt string. If a connection refuses, you're probably trying to feed it text; run it through an encode first.
Inputs (21)
| Name | Type | Default | Description |
|---|---|---|---|
| index | INT | 00–9 | — |
| cond0opt | CONDITIONING | — | |
| cond1opt | CONDITIONING | — | |
| cond2opt | CONDITIONING | — | |
| cond3opt | CONDITIONING | — | |
| cond4opt | CONDITIONING | — | |
| cond5opt | CONDITIONING | — | |
| cond6opt | CONDITIONING | — | |
| cond7opt | CONDITIONING | — | |
| cond8opt | CONDITIONING | — | |
| cond9opt | CONDITIONING | — | |
| cond10opt | CONDITIONING | — | |
| cond11opt | CONDITIONING | — | |
| cond12opt | CONDITIONING | — | |
| cond13opt | CONDITIONING | — | |
| cond14opt | CONDITIONING | — | |
| cond15opt | CONDITIONING | — | |
| cond16opt | CONDITIONING | — | |
| cond17opt | CONDITIONING | — | |
| cond18opt | CONDITIONING | — | |
| cond19opt | CONDITIONING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| conditioning | CONDITIONING | — |