Visit ComfyUI Online for ready-to-use ComfyUI environment
Concatenate two strings with specified separator for text processing and generation tasks.
The ConcatTextOfUtils
node is designed to concatenate two strings together, providing a simple yet powerful way to merge text inputs. This node is particularly useful when you need to combine different pieces of text into a single string, which can be beneficial in various text processing and generation tasks. By allowing you to specify a separator, it offers flexibility in how the strings are joined, making it adaptable to different use cases. Whether you are preparing prompts for AI models or simply need to merge text data, this node streamlines the process, ensuring that the resulting string is formatted according to your needs.
This parameter represents the first string to be concatenated. It is a required input and supports multiline text, allowing you to input longer strings or multiple lines of text. The default behavior is set to "input," meaning you will need to provide the text manually.
This parameter represents the second string to be concatenated. Similar to text1
, it is a required input and supports multiline text. The default behavior is also set to "input," requiring manual input of the text.
This parameter specifies the string that will be used to separate text1
and text2
in the concatenated result. It is a required input but does not support multiline text. The default value is a comma (,
), but you can customize it to any string that suits your needs, such as a space, hyphen, or any other character.
The output of this node is a single concatenated string. This string is the result of merging text1
and text2
with the specified separator
in between. The output is useful for various applications, such as generating prompts, creating combined text data, or any other scenario where merged text is required.
" "
) if you are combining words or sentences.TypeError: can only concatenate str (not "NoneType") to str
text1
, text2
, or separator
) is not provided or is None
.None
.ValueError: Invalid separator
separator
parameter is set to an invalid value that cannot be used in string concatenation.separator
is a valid string. Avoid using special characters that may cause issues in the concatenation process.© Copyright 2024 RunComfy. All Rights Reserved.