ComfyUI Node

switch/case

Implements a switch/case selection in the workflow. This node takes a selector input (an integer) and multiple case value inputs. It returns the value corresponding to the provided index. If the index is out of range, the default value is returned. This allows for selection from multiple options based on a computed index. NOTE: This version of the node will most likely be deprecated in the future.

By StableLlama·Created about a year ago·Updated 26 days ago· 45
switch/case
  • case_0
  • default
  • result
select0
CategoryBasic/flow control

Inputs (3)

NameTypeDefaultDescription
selectINT0
case_0*
defaultopt*

Outputs (1)

NameTypeDescription
result*