ComfyUI Node
Text Builder
Joins any number of multiline text blocks typed on the node with a separator. Blocks are added, toggled, reordered and removed directly on the node. A connected 'text' input is always the first part and cannot be reordered.
Text Builder
- text
◄separator,►
◄skip_emptytrue►
◄strip_whitespacetrue►
◄newline_between_inputsfalse►
◄newline_wrapped_separator►
◄text—►
CategoryMoonPack/string
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| separator | STRING | , | Inserted verbatim between the parts. ',' gives 'a,b'; use ', ' for a space. |
| skip_empty | BOOLEAN | true | Drop parts that are empty after stripping, so no stray separators appear. |
| strip_whitespace | BOOLEAN | true | Strip leading/trailing whitespace from each part before joining. |
| newline_between_inputs | BOOLEAN | false | Join parts with a linefeed (\n) instead of 'separator'. |
| newline_wrapped_separator | STRING | Advanced. If non-empty, joins parts as LF + this text + LF, e.g. '(part) LF (text) LF (part)'. Takes precedence over 'newline_between_inputs' and 'separator'. | |
| textopt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |