This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
LEN
Dan Gorman edited this page Nov 29, 2018
·
2 revisions
LEN returns the length of a string
LEN(arg1)
-
arg1is a string
Let's say we're given a response with some vehicle information that looks like this:
{
"data":{
"vehicles":{
"vehicle_1":{
"driver":"Otto H. Mobile"
}
}
}
}If we want to find the string length of our driver name, we would use:
LEN(data.vehicles.vehicle_1)
This will return 14.
LEN only operates on strings.
If you try to pass it another type of object, like an array, it might yield an unexpected result. For instance, when you try to run:
LEN({1, 2, 3}) you get 1 as a response.