ComfyUI Node

YCSwitch(any)

A ComfyUI node in YCNode/Logic with 3 inputs and 3 outputs.

By yichengup·Created 9 months ago·Updated 3 months ago· 57
YCSwitch(any)
  • input1
  • selected_value
  • selected_label
  • selected_index
select1
sel_modefalse
CategoryYCNode/Logic

Inputs (3)

NameTypeDefaultDescription
selectINT11–999999选择要输出的输入编号
sel_modeBOOLEANfalseselect_on_execution 在执行时动态选择;select_on_prompt 兼容旧版 ComfyUI,在执行前确定。
input1opt*任意输入,连接后自动新增下一输入槽

Outputs (3)

NameTypeDescription
selected_value*仅输出 select 指定的输入内容
selected_labelSTRING所选输入槽位的标签
selected_indexINT所选输入的索引(与 select 相同)