List Concatenate 多个列表合成列表 (2lab)
Splice lists together for batch pipelines
- list_1
- list_2
- list_3
- list_4
- LIST
Once you start batching, you start needing to merge. TextListConcatenate (2lab) takes up to four lists and joins them end-to-end into a single LIST output - "List Concatenate, multiple lists combined into one list," per its own subtitle. It's the natural partner to Text2List (2lab) in this pack: that one turns individual strings into a list, this one turns several lists into one bigger list.
Why would you need that? Real batch workflows rarely have a single clean source. Maybe you're merging prompts from two different tag libraries, or combining a base list of styles with a per-batch list of subjects, or stitching together lists produced by different branches of the graph. Every one of those is "give me all of these, in order, as one iterable" - which is exactly this node's entire job.
Inputs
All four inputs are optional:
list_1…list_4- up to four lists to concatenate.
Output
LIST- the combined list: the contents oflist_1, thenlist_2, and so on, in order.
How it works
Plain list concatenation. It doesn't deduplicate, doesn't sort, doesn't dedupe or transform entries - it joins them in the order the inputs arrive, which is exactly the behavior you want when ordering matters. If a slot is empty, it simply contributes nothing to the result.
Installing it
Standard for this pack. ComfyUI Manager → search "comfyUI-tool-2lab" → install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/AI2lab/comfyUI-tool-2lab
Restart ComfyUI. Pure Python, no model downloads.
Gotchas
- Order is deterministic and meaningful. Output is strictly input order: list_1's items, then list_2's. If your downstream processing assumes a shuffled or interleaved arrangement, this node isn't doing that - you'll need a shuffle/sort node after it.
- No dedup. Feed it the same list twice and you get every entry twice. For some workflows that's a bug, for others (weighted repetition) it's a feature. Know which one you want.
- Repo visibility. The pack's GitHub page currently returns 404, likely made private or renamed by the author. Fresh clones can fail while existing installs keep working - a known state, not your mistake.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| list_1opt | LIST | — | |
| list_2opt | LIST | — | |
| list_3opt | LIST | — | |
| list_4opt | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |