ComfyUI Node
String Switch
Routes one of up to 8 string inputs to the output based on 'selected'. Uses lazy evaluation: only the chosen branch's upstream graph is evaluated.
String Switch
- text
◄selected1►
◄input_1—►
◄input_2—►
◄input_3—►
◄input_4—►
◄input_5—►
◄input_6—►
◄input_7—►
◄input_8—►
CategoryMoonPack/string
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| selected | INT | 11–8 | 1-based index of the input to pass through. |
| input_1opt | STRING | String input #1 | |
| input_2opt | STRING | String input #2 | |
| input_3opt | STRING | String input #3 | |
| input_4opt | STRING | String input #4 | |
| input_5opt | STRING | String input #5 | |
| input_6opt | STRING | String input #6 | |
| input_7opt | STRING | String input #7 | |
| input_8opt | STRING | String input #8 |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |