Text Appender
Text Appender Does the Simple Thing Well
- STRING
Sometimes the node you need is the one you'd write in five minutes anyway. Text Appender (class TextAppender_v2) takes up to five text inputs, joins them with a delimiter you pick, and hands you back one string - with a bonus: tell it a filename and it appends the result to a file in ComfyUI's output folder. That second half is why people actually keep it around.
What it's for
Two genuinely different jobs share this node. First, prompt assembly: build a prompt from separate parts - a subject block, a style block, a quality suffix - each fed in from its own source, joined with \n or , . Second, logging: with output_file set, every run appends the combined text to ComfyUI/output/<filename>, so a batch run leaves you a record of exactly what was generated, without you copying strings out of the UI by hand.
How it works
The mechanism is deliberately boring, which is the point. Non-empty inputs are collected, joined with input_delimiter, then output_delimiter is appended to the end of the whole string. That's a subtle asymmetry worth knowing: the input delimiter goes between texts, the output delimiter goes after the last one. It's not a typo - it's there so you can cap the result with a trailing newline (which is exactly what makes the logging use case work, since each run starts on a fresh line).
Delimiters are typed as literal \n (backslash-n) and converted to real newlines internally, so set both to \n for line-per-run logging. output_file defaults to none, meaning no file is written - set a filename like batch_log.txt and it appends to that file inside ComfyUI's output directory, creating the file if it doesn't exist.
The inputs and outputs
All five text inputs are optional (text1..text5), so you can start with two and grow. The two delimiters and the output filename round out the eight optional fields. Output is one STRING, and the node is marked as an output node - it's happy to be the end of a branch, or you can wire its string into a CLIP Text Encode just like any other text source.
Installing it
It's part of the Switchblade Pack. Via ComfyUI Manager, search MilitantHitchhiker-SwitchbladePack and install, or clone:
cd ComfyUI/custom_nodes
git clone https://github.com/MilitantHitchhiker/MilitantHitchhiker-SwitchbladePack
Then restart ComfyUI. No dependencies, no model downloads.
Common issues
The one thing that trips people: if you paste an actual newline character into a delimiter field instead of the two characters \ and n, the node's conversion won't catch it the way you expect. Stick to typing \n. Also, empty inputs are silently dropped - if every input is empty the node returns an empty string and logs "No text to append", so a silently blank prompt usually means all your upstream text nodes went empty, not that Text Appender broke. And mind the trailing output_delimiter: with \n set it's harmless, but if you use a comma there you'll get a dangling comma on every output. It's a tiny utility with no community track record to speak of, but it's one of those nodes you end up reaching for every time you think "I just want these strings joined."
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| text1opt | STRING | — | |
| text2opt | STRING | — | |
| text3opt | STRING | — | |
| text4opt | STRING | — | |
| text5opt | STRING | — | |
| input_delimiteropt | STRING | \n | — |
| output_delimiteropt | STRING | \n | — |
| output_fileopt | STRING | none | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |