LEN

LEN returns the length of a string.

Function category: Text

LEN only operates on strings.

If you try to pass it another type of object such as an array, it might yield an unexpected result. For instance, if you try to run the following function:

LEN({1, 2, 3})

It returns 1.

Syntax

LEN(arg1)

Arguments

Description

arg1

A string.

Example

Let's say we're given a response with the following vehicle information.

{
"data": {
"vehicles": {
"vehicle_1": {
"driver": "Otto H. Mobile"
}
}
}
}

If we want to find the string length of the driver name, we would use LEN:

# Find length of string
LEN(data.vehicles.vehicle_1)
# Returns 14