Nodes/😸 YFG Comical Nodes/🐯 YFG Text Concat Swap
ComfyUI Node

🐯 YFG Text Concat Swap

Concatenate two strings with a toggle that flips A/B order.

By gonzaluΒ·Created 2 years agoΒ·Updated 6 days agoΒ· 29
🐯 YFG Text Concat Swap
    • text
    • order
    β—„text_aβ–Ί
    β—„text_bβ–Ί
    β—„delimiter, β–Ί
    β—„swapfalseβ–Ί
    β—„trim_partstrueβ–Ί
    Category🐯 YFG/πŸ”€ Switchers

    Inputs (5)

    NameTypeDefaultDescription
    text_aSTRINGFirst string when swap is OFF.
    text_bSTRINGFirst string when swap is ON.
    delimiterSTRING, Joiner. Supports \n, \t and \s escapes.
    swapBOOLEANfalseClick to flip the concatenation order.
    trim_partsBOOLEANtrueStrip leading/trailing whitespace from each part.

    Outputs (2)

    NameTypeDescription
    textSTRINGβ€”
    orderSTRINGβ€”