Nodes/comfyui-moonpack/String Switch
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.

By moonwhaler·Created about a year ago·Updated 24 days ago· 15
String Switch
    • text
    selected1
    input_1
    input_2
    input_3
    input_4
    input_5
    input_6
    input_7
    input_8
    CategoryMoonPack/string

    Inputs (9)

    NameTypeDefaultDescription
    selectedINT11–81-based index of the input to pass through.
    input_1optSTRINGString input #1
    input_2optSTRINGString input #2
    input_3optSTRINGString input #3
    input_4optSTRINGString input #4
    input_5optSTRINGString input #5
    input_6optSTRINGString input #6
    input_7optSTRINGString input #7
    input_8optSTRINGString input #8

    Outputs (1)

    NameTypeDescription
    textSTRING