TextConcatenate
Glue two strings together in RES4LYF
- text
Not everything in a sampler pack is exotic. TextConcatenate is a plain string-joining utility: give it two bits of text and a separator, and it hands back the three stitched together. That's the whole node. It's the kind of small convenience node that shows up in a pack so the author's example workflows don't have to reach for a separate utility pack just to combine a couple of prompt fragments.
Where you'd actually use it: building a prompt from parts. Keep a fixed "quality" or style tag in one field, your changeable subject in another, and concatenate them - swap the subject without retyping the boilerplate. Or assemble a prompt piece from an upstream node's string output plus some static text. It's mundane, and that's fine; RES4LYF is a big pack and a few of its nodes are just the connective tissue that makes a demo workflow run end to end.
How it works
It takes the first string, appends the separator, appends the second string, and returns the result as one STRING. If a field is empty it's simply left out of the join.
The inputs and outputs that matter
All three inputs are optional strings, so you can wire some and type others:
text_1/text_2- the two pieces to combine. Either can be a typed literal or a string piped in from another node.separator- what goes between them. Leave it empty to butt the strings straight together; use,(comma-space) for prompt fragments, or a space, or a newline, depending on what reads right downstream.text(STRING) out - the joined string, ready to feed a text-encode node or another string node.
How to install it
ComfyUI Manager: search RES4LYF, install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/ClownsharkBatwing/RES4LYF
cd RES4LYF
pip install -r requirements.txt
then restart and hard-refresh (F5). Nothing to download.
Common issues & troubleshooting
The two parts ran together with no space. The default separator is empty, so text_1 and text_2 get concatenated with nothing between them. For prompts you almost always want , or at least a space - set it explicitly.
A stray comma or double separator appeared. If one of your text fields is empty, mind how the separator lands - for clean prompt-building, keep the separator in one place rather than adding trailing commas to the text fields themselves.
It only joins two things. That's the node's limit - two inputs. To combine more, chain a second TextConcatenate onto the first node's output. There's no hidden multi-input mode.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| text_1opt | STRING | — | |
| text_2opt | STRING | — | |
| separatoropt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |