ListJoin (Yogurt Nodes)
You have a list. Make it a sentence.
- list_data
- result
ComfyUI hands you lists all day - a split string, a batch of tags, a row of filenames - and then you hit the moment where you need all of it as one plain string. YogurtListJoin is that moment. It takes a list of elements, glues them together with a separator of your choosing, and hands back a single STRING.
This is the inverse of the pack's YogurtStringSplit, and it slots into the same class of "stop fighting the graph to do basic Python" problems that the logic corner of ComfyUI-YogurtNodes exists to solve. The pack is a 150+ node all-in-one by yogurt7771 - obscure, MIT-licensed, no community buzz - but the string and list helpers are the parts that quietly carry real workflows.
How it works
Two inputs, one output. list_data (typed *, so it accepts any list) is the elements; separator is a STRING defaulting to ", " - and it's marked multiline, which means you can put a newline in there if you want each element on its own line. The output result is the joined STRING.
The separator being configurable is the whole point. ", " gives you a clean comma list. " " is a natural-language sentence. "\n" builds a block of lines. For prompt work, joining a list of tags with commas is the classic move - it's the difference between "red dress, sunset, city" and "red dresssunsetcity".
One thing to know: elements get stringified on the way through. Strings stay strings; integers become "42". That's usually exactly what you want when you're building prompts or filenames, and it means you can join a list of mixed types without erroring.
Where you'll use it
- Turning a split or filtered prompt-tag list back into a prompt.
- Building filenames from path parts.
- Rendering a list for a text-display or logging node so you can actually read it.
- Feeding a list of terms into an LLM node as one line of text.
The one trap is your separator choice: if your elements already contain the separator, the join reads ambiguously. Join with something unlikely (" | ") when you're going to split again later. Otherwise this node is about as error-proof as ComfyUI gets - it doesn't do anything clever, which is precisely why it doesn't break.
Install
ComfyUI Manager, search ComfyUI-YogurtNodes, install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/yogurt7771/ComfyUI-YogurtNodes
cd ComfyUI-YogurtNodes
pip install -r requirements.txt
Restart and the node appears under "Yogurt Nodes". No model downloads, and the only dependencies the pack pulls in (numpy, pillow, requests, opencv-python) are ones you almost certainly already have.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| list_data | * | List of elements to join | |
| separatoropt | STRING | , | Separator to use between elements |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | STRING | — |