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

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

    NameTypeDefaultDescription
    indexINT11–20Index number (1-20) to select which text input to output. Values above the visible count are clamped.
    visible_inputsINT202–20How many text input sockets to display on the node (2-20).
    text1optSTRINGText input 1. Only the selected index is output.
    text2optSTRINGText input 2. Only the selected index is output.
    text3optSTRINGText input 3. Only the selected index is output.
    text4optSTRINGText input 4. Only the selected index is output.
    text5optSTRINGText input 5. Only the selected index is output.
    text6optSTRINGText input 6. Only the selected index is output.
    text7optSTRINGText input 7. Only the selected index is output.
    text8optSTRINGText input 8. Only the selected index is output.
    text9optSTRINGText input 9. Only the selected index is output.
    text10optSTRINGText input 10. Only the selected index is output.
    text11optSTRINGText input 11. Only the selected index is output.
    text12optSTRINGText input 12. Only the selected index is output.
    text13optSTRINGText input 13. Only the selected index is output.
    text14optSTRINGText input 14. Only the selected index is output.
    text15optSTRINGText input 15. Only the selected index is output.
    text16optSTRINGText input 16. Only the selected index is output.
    text17optSTRINGText input 17. Only the selected index is output.
    text18optSTRINGText input 18. Only the selected index is output.
    text19optSTRINGText input 19. Only the selected index is output.
    text20optSTRINGText input 20. Only the selected index is output.

    Outputs (2)

    NameTypeDescription
    textSTRING
    labelSTRING