Join Strings(JoinStrings)
This node technically accepts two optional string inputs (string1 and string2) and one required delimiter input.
Join Strings
The Join Strings node technically accepts two optional string inputs (string1 and string2) and a required delimiter input.
The Join Strings node is a text processing tool. Its core function is to concatenate two separate string text fragments into a new string using a user-specified delimiter. It simplifies the operation of combining text prompts or labels within an image generation workflow.
Node Function
This node technically accepts two optional string inputs (string1 and string2) and a required delimiter input. Its internal mechanism is simple string concatenation, performing the operation string1 + delimiter + string2. It supports text inputs of any length, and the output is a single string.
Node Parameter Description - Join Strings
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
delimiter | STRING | Yes | - | Parameter Description 1 (Input Parameter: delimiter): The delimiter used to join the two strings. It can be any character or string, with no length restriction. | |
string1 | STRING | No | "" | - | - |
string2 | STRING | No | "" | - | - |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| STRING | STRING | Parameter Description 2 (Output Parameter: STRING): The newly generated concatenated string. |
Usage Scenario
For example, when constructing complex image generation prompts, you can use this node to join a subject description (e.g., "a cat") and a style description (e.g., "cyberpunk style") with a comma delimiter, forming the complete prompt "a cat, cyberpunk style". This can then be fed into a text encoder node.
Join Strings Node Source Code Link
The Join Strings node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.