4ffd8f56c2289c1aa5ddceb7ee3dcc0dcde80560
ComfyUI Simple Switch
ComfyUI custom node that returns the first available value from six optional wildcard inputs.
What it does
- Accepts six optional inputs:
input01...input06 - Returns the first non-empty input in order
- Preserves original behavior for empty model/clip context dictionaries
- Uses wildcard typing so it can pass through most ComfyUI value types
Credits
This node is isolated and renamed from EGRYQHNode in:
- 11dogzi/Comfyui-ergouzi-Nodes
- Source file:
nodes/egryqh.py
Original author: 11dogzi
Installation
Clone into your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/boobkake22/ComfyUI-SimpleSwitch.git
Restart ComfyUI after installing.
Usage
- Add the
SimpleSwitchnode. - Connect values to
input01...input06in your preferred priority order. - Use
outputdownstream.
License
This repo includes the original upstream LICENSE from
11dogzi/Comfyui-ergouzi-Nodes.
Languages
Python
100%