Stay organized with collections
Save and categorize content based on your preferences.
arrays.join_string
arrays.join_string(array_of_strings, optional_delimiter)
Description
Converts an array of strings into a single string separated by the optional parameter. If no delimiter is provided, the empty string is used.
Param data types
ARRAY_STRINGS
, STRING
Return type
STRING
Code samples
Here are some examples of how to use the function:
Example 1
This example joins an array with non-null elements and a delimiter.
arrays.join_string(["foo", "bar"], ",") = "foo,bar"
Example 2
This example joins an array with a null element and a delimiter.
arrays.join_string(["foo", NULL, "bar"], ",") = "foo,bar"
Example 3
This example joins an array with non-null elements and no delimiter.
arrays.join_string(["foo", "bar"]) = "foobar"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-14 UTC."],[[["The `arrays.join_string` function merges an array of strings into a single string."],["An optional delimiter can be used to separate the string elements; otherwise, strings will be concatenated without a separator."],["Null elements within the array are ignored during the string concatenation process."],["This function is compatible with Chronicle's default rules and search functionalities."]]],[]]