Skip to main content Skip to complementary content

JOIN_ARRAYS

Joins any number of arrays by index using a MessageFormat pattern.

Syntax

JOIN_ARRAYS(formatString, inputs1[, inputs2, ..., inputsN])

Arguments

Name Type Description Default Value
formatString string The format string where {n} prints the n'th input. For example, the pattern '{0}.{0}.{1}' on the inputs 'a' and 'b' will result in the string 'a.a.b' null
inputs# any

Returns

Returns a string value.


Examples

formatString inputs1 inputs2 inputs3 Output
'{0} {1} is {2} years old' array['John', 'Jane'] array['Smith', 'Johnson'] array[35, 32] [`John Smith is 35 years old`, `Jane Johnson is 32 years old`]
'{0}:{1}' array['red', 'green', 'blue', 'luminosity'] array[255, 255, 0] [`red:255`, `green:255`, `blue:0`, `luminosity:`]

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!