ComfyUI Node
๐ Switch (Any) - Yaser
A ComfyUI node in logic/switch with 3 inputs and 3 outputs.
๐ Switch (Any) - Yaser
- input1
- selected_value
- selected_label
- selected_index
โselect1โบ
โsel_modefalseโบ
Categorylogic/switch
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| select | INT | 11โ999999 | The input number you want to output among the inputs |
| sel_mode | BOOLEAN | false | In 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)
| Name | Type | Description |
|---|---|---|
| selected_value | * | Output is generated only from the input chosen by the 'select' value. |
| selected_label | STRING | Slot label of the selected input slot |
| selected_index | INT | Outputs the select value as is |