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.

By Davonez·Created 9 days ago·Updated 4 days ago· 0
Multi Any Switch
  • input_1
  • input_2
  • data
◄switchtrue►
◄pickfirst►
◄force0►
CategorySwitch

Inputs (5)

NameTypeDefaultDescription
switchBOOLEANtrueOn: pick the first (or last) link that carries a value. Off: only slot 1 is used, as if this node were not there.
pickCOMBOfirstWhich link wins when several carry a value: first = topmost | last = bottommost.
forceINT00–16Force 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)

NameTypeDescription
data*The selected link, passed through unchanged.