Concatenates the values of a list of fields into a single value in a new field.

ParameterTypeRequiredDefault ValueDescription
asstringoptional[a] _concat The output name of the field to set.
field[b]array of stringsrequired   Fields to concatenate.

[a] Optional parameters use their default value unless explicitly set.

[b] The parameter name field can be omitted.

Hide omitted argument names for this function

Show omitted argument names for this function

For example:

logscale
concat([aidValue, cidValue], as=checkMe2)

The function is not capable of combining arbitrary strings, or concatenating strings and fields together. The following will not work:

logscale
concat([field1,"/",field2], as=combined)

Instead, you can use the format() function:

logscale
format("%s/%s",field=[field1,field2],as=combined)

concat() Examples

Click + next to an example below to get the full details.

Concatenate Fields and Strings Together

Concatenate Multiple Values From Nested Array Elements

Concatenate multiple values from nested array elements using objectArray:eval() function with concat()

Concatenate Values From Nested Array Elements

Concatenate deeply nested objects and arrays using objectArray:eval() function with concat()

Concatenate Values From Two Nested Array Elements

Concatenate values from two nested array elements returning output in flat array