Join Text (Legacy):
The Sage_JoinText node is designed to concatenate two strings using a specified separator, providing a simple yet effective way to merge text inputs. This node is particularly useful when you need to combine text elements with a consistent delimiter, such as creating a list or a sentence from separate words or phrases. Despite being marked as deprecated, it remains a straightforward tool for text manipulation, allowing you to control whether the separator is appended at the end of the resulting string. This functionality can be beneficial in various text processing tasks, especially when formatting output for readability or further processing.
Join Text (Legacy) Input Parameters:
separator
The separator parameter defines the string that will be used to join the two input strings. It acts as a delimiter between the concatenated strings. The default value is ", ", which means that by default, the strings will be joined with a comma followed by a space. You can customize this to any string that suits your needs, such as a space, a hyphen, or any other character or sequence of characters.
add_separator_to_end
The add_separator_to_end parameter is a boolean option that determines whether the separator should be added to the end of the joined string. By default, this is set to False, meaning the separator will not be appended at the end. If set to True, the separator will be added after the last string, which can be useful if the resulting string is part of a larger list or sequence.
str1
The str1 parameter is the first string input that you want to join. This parameter supports multiline text, allowing you to input a string of any length or complexity. It serves as the initial part of the concatenated result.
str2
The str2 parameter is the second string input that you want to join with str1. Like str1, this parameter also supports multiline text, providing flexibility in the type and length of text you can input. It follows str1 in the concatenated result.
Join Text (Legacy) Output Parameters:
str
The str output parameter is the resulting string after str1 and str2 have been joined using the specified separator. This output reflects the combined text, optionally with the separator appended at the end if add_separator_to_end is set to True. The output is a single string that can be used in subsequent nodes or processes.
Join Text (Legacy) Usage Tips:
- Use the
separatorparameter to customize how your strings are joined, ensuring the output fits your formatting needs. - Consider setting
add_separator_to_endtoTrueif the joined string is part of a list or sequence that requires consistent separation.
Join Text (Legacy) Common Errors and Solutions:
Missing Input Strings
- Explanation: If either
str1orstr2is not provided, the node may not function as expected, resulting in an incomplete or empty output. - Solution: Ensure both
str1andstr2are provided with valid string inputs to achieve the desired concatenation.
Invalid Separator
- Explanation: Using an invalid or unintended separator can lead to unexpected formatting in the output string.
- Solution: Double-check the
separatorparameter to ensure it is set to the intended string or character sequence.
