ComfyUI Node
YCSwitch(any)
A ComfyUI node in YCNode/Logic with 3 inputs and 3 outputs.
YCSwitch(any)
- input1
- selected_value
- selected_label
- selected_index
◄select1►
◄sel_modefalse►
CategoryYCNode/Logic
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| select | INT | 11–999999 | 选择要输出的输入编号 |
| sel_mode | BOOLEAN | false | select_on_execution 在执行时动态选择;select_on_prompt 兼容旧版 ComfyUI,在执行前确定。 |
| input1opt | * | 任意输入,连接后自动新增下一输入槽 |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| selected_value | * | 仅输出 select 指定的输入内容 |
| selected_label | STRING | 所选输入槽位的标签 |
| selected_index | INT | 所选输入的索引(与 select 相同) |