Nodes/AUN ComfyUI Nodes/Text Index Switch 4
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.

By loz2754·Created 7 months ago·Updated about a month ago· 4
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)

    NameTypeDefaultDescription
    minimumINT11–20The minimum index for selection (inclusive).
    maximumINT101–20The maximum index for selection (inclusive).
    modeCOMBOSelectSelect mode: Select for fixed index, Increment for cycling through range, Random for random index within range, Range for selecting from a list of indices.
    indexINT11–20Current or target index, constrained by slot_count).
    slot_countINT21–20Number of visible text slots.
    rangeSTRING1,2,5-8,12A comma-separated list of indices or ranges to select from in Range mode (e.g. 1, 2, 5-8, 12).
    text1STRINGSlot 1
    text2STRINGSlot 2
    text3STRINGSlot 3
    text4STRINGSlot 4
    text5STRINGSlot 5
    text6STRINGSlot 6
    text7STRINGSlot 7
    text8STRINGSlot 8
    text9STRINGSlot 9
    text10STRINGSlot 10
    text11STRINGSlot 11
    text12STRINGSlot 12
    text13STRINGSlot 13
    text14STRINGSlot 14
    text15STRINGSlot 15
    text16STRINGSlot 16
    text17STRINGSlot 17
    text18STRINGSlot 18
    text19STRINGSlot 19
    text20STRINGSlot 20

    Outputs (3)

    NameTypeDescription
    textSTRING
    labelSTRING
    indexINT