ComfyUI-Dropdown-Switch
A comfy UI custom node that accepts many inputs, allows you to assign labels to them, and populates an app mode compatible dropdown to switch which input flows through the workflow
ComfyUI Dropdown Switch
A frontend-only custom node for ComfyUI that acts as a case/switch selector.
What it does
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 |
Installation
Via ComfyUI Manager (recommended)
Search for Dropdown Switch in the Custom Nodes list and install.
Manual
cd ComfyUI/custom_nodes
git clone https://github.com/YOUR_USERNAME/ComfyUI-Dropdown-Switch
No extra dependencies — this is a frontend-only node with no Python packages required.
Usage
- 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"
Compatibility
- ComfyUI classic canvas (legacy LiteGraph)
- ComfyUI Nodes 2.0 / new frontend API
- App mode
License
Apache 2.0 — see LICENSE.