Nodes/MD Nodes/MD: Multi-Way Switch (5-Path)
ComfyUI Node

MD: Multi-Way Switch (5-Path)

A ComfyUI node in MD_Nodes/Logic with 7 inputs and 1 output.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
MD: Multi-Way Switch (5-Path)
  • input_1
  • input_2
  • input_3
  • input_4
  • input_5
  • default_value
  • selected_output
select_index1
CategoryMD_Nodes/Logic

Inputs (7)

NameTypeDefaultDescription
select_indexINT11–5PATH INDEX • Purpose: Selects which of the 5 inputs to pass through. • Range: 1 to 5.
input_1opt*PATH 1 • Selected if Index = 1.
input_2opt*PATH 2 • Selected if Index = 2.
input_3opt*PATH 3 • Selected if Index = 3.
input_4opt*PATH 4 • Selected if Index = 4.
input_5opt*PATH 5 • Selected if Index = 5.
default_valueopt*FALLBACK VALUE • Purpose: Output if the selected index is empty or out of range. ⭐ Prevents workflow crashes from null outputs.

Outputs (1)

NameTypeDescription
selected_output*