A frontend-only custom node for ComfyUI that acts as a case/switch selector.
Connect multiple upstream nodes to the Dropdown Switch, assign each connection a label, then pick which one is active from the dropdown. Only the selected path is forwarded to downstream nodes.
Outputs
| Output | Type | Description |
|---|---|---|
STRING |
STRING | The label text of the currently selected input |
value |
* |
The value on the selected input |
Search for Dropdown Switch in the Custom Nodes list and install.
cd ComfyUI/custom_nodes
git clone https://github.com/YOUR_USERNAME/ComfyUI-Dropdown-SwitchNo extra dependencies — this is a frontend-only node with no Python packages required.
- Add node — right-click canvas → Add Node → utils → Dropdown Switch
- Connect inputs — wire any upstream nodes into the input slots; a new empty slot appears automatically as you connect
- Rename labels — right-click the node → Rename "input_N" to give each path a meaningful name
- Select active path — choose from the choice dropdown; the
valueoutput will carry that input's data - Add/remove inputs — right-click the node → Add Input or Remove "label"
- ComfyUI classic canvas (legacy LiteGraph)
- ComfyUI Nodes 2.0 / new frontend API
- App mode
Apache 2.0 — see LICENSE.