Text Concatenate (UTK):
The Text Concatenate (UTK) node is designed to seamlessly merge multiple strings into a single cohesive text block, offering flexibility through customizable delimiters and whitespace management. This node is particularly beneficial for AI artists and creators who need to combine various text inputs into a unified format, ensuring that the final output is clean and well-structured. By allowing users to define their own delimiters, such as commas, spaces, or even line breaks, and providing options to handle whitespace effectively, this node simplifies the process of text concatenation. Its primary goal is to enhance text manipulation capabilities within creative workflows, making it an essential tool for those looking to streamline their text processing tasks.
Text Concatenate (UTK) Input Parameters:
delimiter
The delimiter parameter allows you to specify the character or string that will be used to separate each text input in the final concatenated output. This can be any string, such as a comma, space, or newline character. The default value is a comma followed by a space (, ). By customizing the delimiter, you can control how the individual text segments are joined, which is particularly useful for formatting purposes.
clean_whitespace
The clean_whitespace parameter determines whether leading and trailing whitespace should be removed from each text input before concatenation. It accepts two options: "true" or "false". When set to "true", any extra spaces at the beginning or end of each text input are stripped away, resulting in a cleaner output. This is useful when you want to ensure that the concatenated text does not contain unintended spaces.
text_a
The text_a parameter is one of the optional text inputs that you can provide to the node. It is a string that will be included in the concatenation process. This parameter is marked with forceInput: True, meaning that it requires a value to be provided if used.
text_b
Similar to text_a, the text_b parameter is another optional string input for the node. It will be concatenated with other text inputs if provided. This parameter also requires a value if it is used, as indicated by forceInput: True.
text_c
The text_c parameter is an optional string input that can be included in the concatenation process. Like the other text inputs, it requires a value if used, as indicated by forceInput: True.
text_d
The text_d parameter is the final optional string input available for concatenation. It follows the same requirement as the other text inputs, needing a value if used, as indicated by forceInput: True.
Text Concatenate (UTK) Output Parameters:
STRING
The output of the Text Concatenate (UTK) node is a single STRING that represents the concatenated result of all provided text inputs. This output is the final merged text, formatted according to the specified delimiter and whitespace handling options. It serves as a unified text block that can be used in subsequent processes or outputs, providing a streamlined and organized text format.
Text Concatenate (UTK) Usage Tips:
- To ensure a clean output, set
clean_whitespaceto"true"if your input texts might contain unwanted spaces at the beginning or end. - Experiment with different
delimitervalues to achieve the desired text format, such as using"\n"for line breaks or", "for comma-separated lists.
Text Concatenate (UTK) Common Errors and Solutions:
Missing required input
- Explanation: This error occurs when one or more required text inputs are not provided.
- Solution: Ensure that all required text inputs (
text_a,text_b,text_c,text_d) are supplied with valid strings if they are being used.
Invalid delimiter
- Explanation: An invalid or unsupported delimiter might cause unexpected results in the concatenated output.
- Solution: Verify that the
delimiteris a valid string and adjust it to match your formatting needs, such as using"\n"for new lines or", "for commas.
