Description
Joins an array of strings into a single string using a specified delimiter.Syntax
Parameters
Returns
Type: string A single string with all array elements concatenated, separated by the delimiter. Returnsnull if the array is null or undefined.
Examples
Example 1: Basic String Joining
Example 2: Building CSV Lines
Example 3: Creating Tags String
Example 4: Building Paths
Notes
- Returns
nullif input array isnull - Empty strings in the array are included in the output
- Delimiter can be any string, including empty string
- Commonly used for CSV generation, path building, or tag formatting
See Also
- text.format - Format strings with placeholders
- coll.zip - Combine two lists
Frequently Asked Questions
What happens if the array contains null elements?
What happens if the array contains null elements?
Null elements are included in the output as empty positions between delimiters.
Can the delimiter be an empty string?
Can the delimiter be an empty string?
Yes. Using an empty string
'' as the delimiter concatenates all elements without any separator.