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.
switch/case
- case_0
- default
- result
◄select0►
CategoryBasic/flow control
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| select | INT | 0 | — |
| case_0 | * | — | |
| defaultopt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | * | — |