This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
CONCATENATE
Dan Gorman edited this page Nov 29, 2018
·
2 revisions
CONCATENATE
appends strings to one another.
CONCATENATE(arg1, [arg2...])
-
arg1
is a string -
arg2
is optional, and also a string -
CONCATENATE
can take an arbitrary number of arguments
Let's say we're given a response with some vehicle information that looks like this:
{
"data":{
"vehicles":{
"vehicle_1":{
"make":"Toyota",
"vin":"A31z056"
}
}
}
}
If we want to combine the information on vehicle_1
into a meta-vehicle tag, we could do so by using the CONCATENATE
function.
CONCATENATE(data.vehicle_1.make, "-", data.vehicle_1.vin)
This would return "Toyota-A31z056
.
Concatenate can also take an array of strings, which it will merge into a single string. For example,
CONCATENATE({"a","a","a","a"}) => "aaaa"