Text To List [LP]
Turn up to ten text boxes into one string or a real list
- concatenated STRING
- text LIST
This pack's own README opens by describing itself as nodes "adapted for use in cycles and conditions" - and Text To List is a clean example of what that means in practice. It takes up to ten separate text fields and gives you back two different shapes of the same data: one joined string, and one real LIST you can feed into anything downstream that iterates.
What it does
You fill in as many of the ten optional text_N fields as you need - leave the rest blank - and pick a delimiter. The node gives you back both a single concatenated string (all your populated text fields joined by that delimiter) and a LIST containing each text field as a separate entry. That's the useful part: a plain string concatenation node would only give you the first output, which is fine for display or logging but useless if what you actually need downstream is a batch of separate items to loop over, run one at a time, or feed into a node that expects a list input rather than one long string. This node gives you both without having to build the list yourself by hand.
Practical use: ten reference prompts typed into ten separate boxes (much easier to read and edit individually than one giant delimited string), a delimiter of , for the concatenated version you might show in a log or use as a combined caption, and the LIST output wired into whatever in your graph needs to process each one separately.
Inputs and outputs that matter
delimiter(optional, defaults to a single space) - what joins the entries in the concatenated output.text_1throughtext_10(all optional, multiline, default empty) - your individual text entries. Empty ones presumably don't contribute an empty entry to either output.
Outputs:
concatenated STRING- all populatedtext_Nfields joined bydelimiter.text LIST- the same entries as a list, one item per populated field, for anything downstream that iterates or batches.
Installing it
Through ComfyUI Manager, search "ComfyUI Level Pixel" or "ComfyUI-LevelPixel." Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/LevelPixel/ComfyUI-LevelPixel.git
Restart ComfyUI. Pure text processing, no models or extra dependencies.
Common issues & troubleshooting
Only need the list, not the concatenated string (or vice versa). Both outputs compute regardless of whether you use one - just leave the one you don't need unwired, it won't cause an error to go unused.
The concatenated output has extra separators where you left fields blank. Whether empty text_N fields are skipped entirely in both outputs or leave a gap isn't explicitly documented - if you're seeing unexpected blank entries in the LIST or doubled delimiters in the concatenated string, that's worth checking directly rather than assuming empty fields are silently dropped.
Need more than ten entries. The node caps at ten numbered fields. For more, either group related entries into fewer, longer text_N fields, or chain a second Text To List and combine its LIST output with the first's downstream.
Delimiter confusion when your text itself contains the delimiter character. If your entries naturally contain the character you chose as delimiter (a comma-separated tag list joined with , , for instance), the concatenated STRING output becomes ambiguous to parse back apart later - the LIST output sidesteps that problem entirely since it keeps entries as genuinely separate items rather than one delimited string.
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| delimiteropt | STRING | — | |
| text_1opt | STRING | — | |
| text_2opt | STRING | — | |
| text_3opt | STRING | — | |
| text_4opt | STRING | — | |
| text_5opt | STRING | — | |
| text_6opt | STRING | — | |
| text_7opt | STRING | — | |
| text_8opt | STRING | — | |
| text_9opt | STRING | — | |
| text_10opt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| concatenated STRING | STRING | — |
| text LIST | LIST | — |