Join String Multi(JoinStringMulti)
This node technically allows users to dynamically define the number of input strings, ranging from 2 to 1000.
Join String Multi
The Join String Multi node technically allows users to dynamically define the number of input strings, ranging from 2 to 1000.
The Join String Multi node is a text processing tool whose core function is to merge multiple input text strings into a single string or combine them into a list of strings. It connects the individual parts using a configurable delimiter, providing users with a flexible way to assemble text.
Node Function
This node technically allows users to dynamically define the number of input strings, ranging from 2 to 1000. It controls the number of active input ports via the inputcount parameter and uses the delimiter parameter to specify the separator used when joining the strings. Its core mechanism is to iterate through all active inputs and, based on the setting of the return_list parameter, decide whether to return a concatenated long string or a list containing all independent strings.
Node Parameter Description - Join String Multi
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
inputcount | INT | Yes | 2 | 2 - 1000 (Step: 1) | inputcount (Input Parameter): Sets the total number of input strings to be joined. The valid range is between 2 and 1000. After each adjustment, click the "Update" button to refresh the input ports. |
string_1 | STRING | Yes | `` (empty string) | - | string_1 (Input Parameter): The first input string, typically serving as the starting part of the merge operation. |
delimiter | STRING | Yes | - | delimiter (Input Parameter): Defines the separator used to delimit each part when merging strings, such as a space or comma. | |
return_list | BOOLEAN | Yes | False | - | return_list (Input Parameter): Controls the output format. When set to False, it returns a single concatenated string; when set to True, it returns an independent list of strings. |
string_2 | STRING | No | `` (empty string) | - | - |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| string | STRING | string (Output Parameter): Outputs the merged string or list of strings according to the settings. |
Usage Scenarios
In practical workflows, this node is commonly used to construct complex prompts or file paths. For example, in an image generation workflow, you can input a base description, style keywords, and quality parameters as independent strings and use this node to merge them into a complete prompt suitable for a text-to-image model. It can also be used for batch processing of filenames, combining prefixes, sequence numbers, and suffixes.
Notes
Please note that when return_list is set to True, the node outputs a Python list object (represented internally in ComfyUI as a string type), which may require subsequent nodes to have the capability to handle lists. The number of input strings is limited by the inputcount parameter and must be at least 2.
Join String Multi Node Source Code Link
The Join String Multi node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.