Nodes/Yaser-nodes for ComfyUI/๐Ÿ”€ Switch (Any) - Yaser
ComfyUI Node

๐Ÿ”€ Switch (Any) - Yaser

A ComfyUI node in logic/switch with 3 inputs and 3 outputs.

By YaserJaradehยทCreated about a year agoยทUpdated 10 months agoยท 8
๐Ÿ”€ Switch (Any) - Yaser
  • input1
  • selected_value
  • selected_label
  • selected_index
โ—„select1โ–บ
โ—„sel_modefalseโ–บ
Categorylogic/switch

Inputs (3)

NameTypeDefaultDescription
selectINT11โ€“999999The input number you want to output among the inputs
sel_modeBOOLEANfalseIn the case of 'select_on_execution', the selection is dynamically determined at the time of workflow execution. 'select_on_prompt' is an option that exists for older versions of ComfyUI, and it makes the decision before the workflow execution.
input1opt*Any input. When connected, one more input slot is added.

Outputs (3)

NameTypeDescription
selected_value*Output is generated only from the input chosen by the 'select' value.
selected_labelSTRINGSlot label of the selected input slot
selected_indexINTOutputs the select value as is