Text Concat 拼接文本 (2lab)
The four-input concat the pack added after the two-input one
- STRING
This is the grown-up concat node. Where the pack's other string-joiner, concat_text (2lab), takes two strings, TextConcat takes four - text1 through text4 - plus a delimiter, and hands you one joined STRING on the other side. If you've ever chained two-input concat nodes three deep just to assemble a prompt, this collapses the whole tower into a single node.
You'll reach for it whenever a prompt is really four independent knobs you want to keep separate. Base style, subject, lighting, and a negative-suffix are the classic four. Keep each in its own node, wire them in, and you can edit any one slice without touching the others. The delimiter defaults to ",", so by default you get comma-joined output - right for prompts, wrong for filenames, and easy to switch to a space or newline.
What to actually set:
text1–text4- the pieces, in order. Empty strings join cleanly (you just get the delimiter twice), so you can leave a slot unused.delimiter- the glue, default",".
The output is a STRING with no name attached in the schema, which is mildly annoying but irrelevant in practice - it connects to any string input. The node is flagged as an output node, so running the graph shows you the joined text in the UI even if nothing else consumes it.
Now the honest part. The pack ships both this and concat_text (2lab), which is redundant - same job, one with two inputs, one with four. That's the fingerprint of a pack that refactored without cleaning up. My take: if you're joining two things, either works; if you're joining three or four, use this one and skip the nesting. There are also a dozen concat nodes across other packs (WAS, Impact, KJNodes), so this isn't a node you'd install the whole bundle for - it's a convenience that makes sense only if you're already in the 2lab ecosystem.
Installing it
Part of the AI2lab/comfyUI-tool-2lab pack. ComfyUI Manager, search "comfyUI-tool-2lab", install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/AI2lab/comfyUI-tool-2lab
Restart ComfyUI and the node appears under the ☁️2lab/util menu. Requirements are minimal (qrcode, Pillow, numpy, torch), no model files to fetch.
Common issues
The failure modes are the usual text-node ones. Delimiter semantics trip people up: with four inputs and one "," delimiter you get a,b,c,d, not a,b,c, and d - there's no smart grammar here. And if you're feeding it an empty text2 hoping it skips, you'll get a doubled delimiter instead. Both are cosmetic and fixable by trimming. Beyond that there's nothing to troubleshoot: it's pure string work, zero network, zero VRAM, and it can't really throw at you unless you pass something that isn't a string. The real caveat is documentation - the pack README is a one-line "toolkits" plus a Chinese walkthrough aimed at publishing workflows to the 2lab WeChat mini-program, so the English docs for this node are effectively whatever this page says.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| text1 | STRING | — | |
| text2 | STRING | — | |
| text3 | STRING | — | |
| text4 | STRING | — | |
| delimiter | STRING | , | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |