Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > comfyui-togglemaster > Dynamic Text Concatenate

ComfyUI Node: Dynamic Text Concatenate

Class Name

DynamicTextConcatenate

Category
utils
Author
jonstreeter (Account age: 1470days)
Extension
comfyui-togglemaster
Latest Updated
2025-12-20
Github Stars
0.0K

How to Install comfyui-togglemaster

Install this extension via the ComfyUI Manager by searching for comfyui-togglemaster
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui-togglemaster in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Dynamic Text Concatenate Description

Joins up to ten nonempty text inputs in order with a chosen separator, skipping empty inputs.

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 space for ordinary phrases, comma for comma-separated prompt terms, and newline when 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 custom when the preset separators do not fit your format, then enter the exact characters you want in custom_delimiter. If you need spaces around a symbol, include those spaces yourself.
  • Use none when 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_1 through text_10 supplies 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_1 through text_10.

Text appears in the wrong order

  • Explanation: Pieces are assembled by input number, from text_1 to text_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 none option inserts nothing between pieces. The same happens when custom is selected and custom_delimiter is empty.
  • Solution: Choose space or another preset separator, or enter the needed spacing in custom_delimiter.

Custom separator does not appear

  • Explanation: custom_delimiter is used only when delimiter is set to custom. 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: comma adds , and pipe adds |. 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.

Dynamic Text Concatenate Related Nodes

Go back to the extension to check out more related nodes.
comfyui-togglemaster
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Dynamic Text Concatenate