ComfyUI Node
π― YFG Text Concat Swap
Concatenate two strings with a toggle that flips A/B order.
π― YFG Text Concat Swap
- text
- order
βtext_aβΊ
βtext_bβΊ
βdelimiter, βΊ
βswapfalseβΊ
βtrim_partstrueβΊ
Categoryπ― YFG/π Switchers
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| text_a | STRING | First string when swap is OFF. | |
| text_b | STRING | First string when swap is ON. | |
| delimiter | STRING | , | Joiner. Supports \n, \t and \s escapes. |
| swap | BOOLEAN | false | Click to flip the concatenation order. |
| trim_parts | BOOLEAN | true | Strip leading/trailing whitespace from each part. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| text | STRING | β |
| order | STRING | β |