ComfyUI Node
Text Index Switch
Switch between up to 20 text inputs based on index number. Useful for dynamic prompt selection with control over how many sockets are visible on the node. Inputs take the title of the connected node, which is also used as the label.
Text Index Switch
- text
- label
◄index1►
◄visible_inputs20►
◄text1►
◄text2►
◄text3►
◄text4►
◄text5►
◄text6►
◄text7►
◄text8►
◄text9►
◄text10►
◄text11►
◄text12►
◄text13►
◄text14►
◄text15►
◄text16►
◄text17►
◄text18►
◄text19►
◄text20►
CategoryAUN Nodes/Text
Inputs (22)
| Name | Type | Default | Description |
|---|---|---|---|
| index | INT | 11–20 | Index number (1-20) to select which text input to output. Values above the visible count are clamped. |
| visible_inputs | INT | 202–20 | How many text input sockets to display on the node (2-20). |
| text1opt | STRING | Text input 1. Only the selected index is output. | |
| text2opt | STRING | Text input 2. Only the selected index is output. | |
| text3opt | STRING | Text input 3. Only the selected index is output. | |
| text4opt | STRING | Text input 4. Only the selected index is output. | |
| text5opt | STRING | Text input 5. Only the selected index is output. | |
| text6opt | STRING | Text input 6. Only the selected index is output. | |
| text7opt | STRING | Text input 7. Only the selected index is output. | |
| text8opt | STRING | Text input 8. Only the selected index is output. | |
| text9opt | STRING | Text input 9. Only the selected index is output. | |
| text10opt | STRING | Text input 10. Only the selected index is output. | |
| text11opt | STRING | Text input 11. Only the selected index is output. | |
| text12opt | STRING | Text input 12. Only the selected index is output. | |
| text13opt | STRING | Text input 13. Only the selected index is output. | |
| text14opt | STRING | Text input 14. Only the selected index is output. | |
| text15opt | STRING | Text input 15. Only the selected index is output. | |
| text16opt | STRING | Text input 16. Only the selected index is output. | |
| text17opt | STRING | Text input 17. Only the selected index is output. | |
| text18opt | STRING | Text input 18. Only the selected index is output. | |
| text19opt | STRING | Text input 19. Only the selected index is output. | |
| text20opt | STRING | Text input 20. Only the selected index is output. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| label | STRING | — |