Nodes/Arctenoxs-Essentials_ComfyUI/String Switch (Arctenox's Essentials)
ComfyUI Node

String Switch (Arctenox's Essentials)

Toggle between two STRING values. Outputs: • selected – the active string (A or B depending on toggle) • discarded – the inactive string (useful for logging/debugging) Use Cases: • Swap between two prompt variants without rewiring • Toggle a LoRA list on/off by switching between the list and "" • A/B compare different model names fed into Save Image With Metadata

By Arctenox·Created 8 months ago·Updated about a month ago· 1
String Switch (Arctenox's Essentials)
    • selected
    • discarded
    use_string_atrue
    string_a
    string_b
    CategoryArctenox Essentials/Text

    Inputs (3)

    NameTypeDefaultDescription
    use_string_aBOOLEANtrueWhen ON, outputs string_a. When OFF, outputs string_b.
    string_aSTRINGOutput when toggle is ON (String A)
    string_bSTRINGOutput when toggle is OFF (String B)

    Outputs (2)

    NameTypeDescription
    selectedSTRING
    discardedSTRING