KJNodes/textgenerated

Join Strings(JoinStrings)

This node technically accepts two optional string inputs (string1 and string2) and one required delimiter input.

Join Strings

STRING
delimiter
0
string1
STRING
string2
STRING
KJNodes

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 NameData TypeRequiredDefault ValueValue Range/OptionsDescription
delimiterSTRINGYes-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.
string1STRINGNo""--
string2STRINGNo""--

Output

Parameter NameData TypeDescription
STRINGSTRINGParameter 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.

The Join Strings node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…