String List Combine
Merge up to four string lists into one, no drama
- strings
String List Combine does exactly what it says: takes up to four lists of strings and concatenates them into one. One required input (list_1), three optional (list_2 through list_4), one output: a single list. It's the kind of boring utility node that you don't appreciate until you're building a prompt-batching workflow and realize you need to union prompts from several sources - say, one list you typed, one generated by String List from Text, and one from an external node - before sending the whole thing to a sampler.
How it works
The implementation is a straightforward concatenation. Each list input is received as a list (the node declares INPUT_IS_LIST), and combine starts with a copy of list_1 and extends it with list_2, list_3, and list_4 in order, skipping any that are missing. Order is preserved: the first list's items come first, then the second's, and so on. No deduplication, no sorting, no flattening beyond one level - if that matters to you, it's worth knowing going in.
Inputs and outputs
list_1(required) - a STRING listlist_2,list_3,list_4(optional) - more STRING lists, in the order you want them appended
Output: strings - the combined list. It feeds anything that consumes a string list, including other nodes in this pack or a loop that iterates over prompts.
Where it fits
This node makes the most sense when paired with the pack's other string utilities. StringListFromText turns multiline text into a list; you might have a couple of those producing prompt variants, and you want to run them as one batch. Combine is the glue. It's also handy for mixing a base set of prompts with a dynamically generated set - combine once, iterate once.
Install
Pack install via ComfyUI Manager (search "Latent Astronaut Suite") or:
cd ComfyUI/custom_nodes
git clone https://github.com/latentastronaut/comfyui-latent-astronaut-suite
Restart. No dependencies beyond stock ComfyUI. The main thing to remember: inputs are lists, not single strings - if you wire a plain STRING output in, ComfyUI will treat it as a list of one, which is probably not what you want. And because order is preserved without dedup, feed lists in the order you actually want them to appear downstream.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| list_1 | STRING | — | |
| list_2opt | STRING | — | |
| list_3opt | STRING | — | |
| list_4opt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| strings | STRING | — |