ComfyUI Node
Text Index Switch 4
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. Otherwise, the first line of the text input is used as the label and removed from the output.
Text Index Switch 4
- text
- label
- index
◄minimum1►
◄maximum10►
◄modeSelect►
◄index1►
◄slot_count2►
◄range1,2,5-8,12►
◄text1Slot 1►
◄text2Slot 2►
◄text3Slot 3►
◄text4Slot 4►
◄text5Slot 5►
◄text6Slot 6►
◄text7Slot 7►
◄text8Slot 8►
◄text9Slot 9►
◄text10Slot 10►
◄text11Slot 11►
◄text12Slot 12►
◄text13Slot 13►
◄text14Slot 14►
◄text15Slot 15►
◄text16Slot 16►
◄text17Slot 17►
◄text18Slot 18►
◄text19Slot 19►
◄text20Slot 20►
CategoryAUN Nodes/Text
Inputs (26)
| Name | Type | Default | Description |
|---|---|---|---|
| minimum | INT | 11–20 | The minimum index for selection (inclusive). |
| maximum | INT | 101–20 | The maximum index for selection (inclusive). |
| mode | COMBO | Select | Select mode: Select for fixed index, Increment for cycling through range, Random for random index within range, Range for selecting from a list of indices. |
| index | INT | 11–20 | Current or target index, constrained by slot_count). |
| slot_count | INT | 21–20 | Number of visible text slots. |
| range | STRING | 1,2,5-8,12 | A comma-separated list of indices or ranges to select from in Range mode (e.g. 1, 2, 5-8, 12). |
| text1 | STRING | Slot 1 | — |
| text2 | STRING | Slot 2 | — |
| text3 | STRING | Slot 3 | — |
| text4 | STRING | Slot 4 | — |
| text5 | STRING | Slot 5 | — |
| text6 | STRING | Slot 6 | — |
| text7 | STRING | Slot 7 | — |
| text8 | STRING | Slot 8 | — |
| text9 | STRING | Slot 9 | — |
| text10 | STRING | Slot 10 | — |
| text11 | STRING | Slot 11 | — |
| text12 | STRING | Slot 12 | — |
| text13 | STRING | Slot 13 | — |
| text14 | STRING | Slot 14 | — |
| text15 | STRING | Slot 15 | — |
| text16 | STRING | Slot 16 | — |
| text17 | STRING | Slot 17 | — |
| text18 | STRING | Slot 18 | — |
| text19 | STRING | Slot 19 | — |
| text20 | STRING | Slot 20 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| label | STRING | — |
| index | INT | — |