Dynamic Text Concatenate:
DynamicTextConcatenate combines pieces of text into one continuous string. It keeps the pieces in a fixed order and places a chosen separator between them, making it useful for assembling prompts, captions, labels, or other text from separate parts of a workflow. Empty or missing pieces are skipped, so you can leave parts unused without creating separators for them.
Dynamic Text Concatenate Input Parameters:
text_1
An optional STRING connection for the first piece of text. When connected and nonempty, its value appears first in the result. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined; this input is configured as a connection rather than a text-entry field.
text_2
An optional STRING connection for the second piece of text. When connected and nonempty, it follows text_1 if that input has a value; otherwise, it becomes the first included piece. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined.
text_3
An optional STRING connection for the third piece of text. Its nonempty value appears after any included values from text_1 and text_2. An empty string or a missing connection is skipped, with no separator added for that skipped position. No minimum, maximum, or default text value is defined.
text_4
An optional STRING connection for the fourth piece of text. Its nonempty value is included in numbered order after earlier connected text, making it useful for another phrase or prompt component. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined.
text_5
An optional STRING connection for the fifth piece of text. Its nonempty value is placed after earlier included pieces and before later ones, regardless of which intervening inputs are unused. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined.
text_6
An optional STRING connection for the sixth piece of text. Its nonempty value contributes another segment at this position in the numbered sequence. An empty string or a missing connection is skipped rather than producing an empty segment. No minimum, maximum, or default text value is defined.
text_7
An optional STRING connection for the seventh piece of text. Its nonempty value follows the included text from lower-numbered inputs, with the selected delimiter placed between included pieces. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined.
text_8
An optional STRING connection for the eighth piece of text. Its nonempty value is added in numbered order, which lets you extend a longer assembled prompt or caption. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined.
text_9
An optional STRING connection for the ninth piece of text. Its nonempty value appears after any included lower-numbered pieces and before text_10 when that input is also included. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined.
text_10
An optional STRING connection for the tenth piece of text. Its nonempty value is the last included piece because the node processes text_1 through text_10 in order. An empty string or a missing connection is skipped. No minimum, maximum, or default text value is defined.
delimiter
An optional choice that controls what appears between included text pieces. The available options are space (one space), none (nothing), comma (a comma followed by a space), newline (a line break), pipe (a space, vertical bar, and space), and custom (the value of custom_delimiter). The default is space. There is no numeric minimum or maximum; the listed choices are the defined options.
custom_delimiter
An optional STRING used between included pieces only when delimiter is set to custom. You can enter a separator suited to your format, such as ; for a semicolon followed by a space. Its default is an empty string, which joins pieces with nothing between them when custom is selected. No minimum or maximum length is defined in the source.
Dynamic Text Concatenate Output Parameters:
text
A STRING containing all nonempty, connected text values joined in text_1 through text_10 order with the selected delimiter between them. For example, red in text_1 and flowers in text_3 produce red, flowers with the comma option; the unused text_2 adds no extra comma. If no text values are included, the output is an empty string.
Dynamic Text Concatenate Usage Tips:
- Connect prompt components in the order you want them to appear. The node follows socket numbers, not the order in which you make connections.
- Use
spacefor ordinary phrases,commafor comma-separated prompt terms, andnewlinewhen each included piece should start on a separate line. - Leave unused text connections empty. The node skips them and inserts delimiters only between pieces it includes.
- Select
customwhen the preset separators do not fit your format, then enter the exact characters you want incustom_delimiter. If you need spaces around a symbol, include those spaces yourself. - Use
nonewhen the pieces should touch directly, such as joining parts of a single word or identifier. Check the resulting text for missing spaces if you use it for a readable sentence.
Dynamic Text Concatenate Common Errors and Solutions:
Output is empty
- Explanation: The node returns an empty string when none of
text_1throughtext_10supplies a nonempty value. The source does not define a dedicated error message for this case. - Solution: Connect a text source and confirm it produces nonempty text.
Expected text is missing from the result
- Explanation: Missing connections and values equal to an empty string are skipped. The node only checks the numbered text inputs shown in its interface.
- Solution: Check the intended connection and the text it supplies, then make sure it is attached to one of
text_1throughtext_10.
Text appears in the wrong order
- Explanation: Pieces are assembled by input number, from
text_1totext_10, regardless of when you connected them. - Solution: Move the connections to the numbered inputs that match your intended reading order.
Words run together
- Explanation: The
noneoption inserts nothing between pieces. The same happens whencustomis selected andcustom_delimiteris empty. - Solution: Choose
spaceor another preset separator, or enter the needed spacing incustom_delimiter.
Custom separator does not appear
- Explanation:
custom_delimiteris used only whendelimiteris set tocustom. It also cannot appear between pieces when fewer than two nonempty text values are included. - Solution: Select
custom, enter a nonempty separator, and confirm that at least two text inputs provide nonempty values.
Unexpected spaces or punctuation appear
- Explanation: Some presets include spaces:
commaadds,andpipeadds|. Spaces or punctuation already present at the ends of your text pieces remain there. - Solution: Inspect the ends of the connected text values and choose a delimiter that does not duplicate their existing spacing or punctuation.
A visible gap is not skipped
- Explanation: The source skips an empty string, but it does not trim text. A value containing only spaces is still included and may create an unexpected gap.
- Solution: Remove unwanted spaces from the connected text source before it reaches this node.
