ComfyUI Node
Multi Any Switch
Multi-input merge: connect any number of links of any type and output the one that carries a value, unchanged. Muted/disabled upstreams are skipped instead of raising an error. A new empty input slot appears as soon as the last one is connected, so you can keep adding links. Want a fixed slot? Set force to 3 to always use slot 3.
Multi Any Switch
- input_1
- input_2
- data
◄switchtrue►
◄pickfirst►
◄force0►
CategorySwitch
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| switch | BOOLEAN | true | On: pick the first (or last) link that carries a value. Off: only slot 1 is used, as if this node were not there. |
| pick | COMBO | first | Which link wins when several carry a value: first = topmost | last = bottommost. |
| force | INT | 00–16 | Force one slot: 0 = auto (pick the link with a value); 1-16 = only that slot, output empty when it has no value (no automatic fallback). |
| input_1opt | * | Slot 1. Connecting it adds another input slot automatically; keep adding as many as you need. | |
| input_2opt | * | Slot 2. Used when slot 1 is muted. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| data | * | The selected link, passed through unchanged. |