Carrot reference
Functions

length()

Returns the number of items in a list or set, or the length of a String.

Syntax

length(value)

  • value - the list or String to be evaluated.

Return type: Number

Sample usage

length("hello there") returns 11

length(favouriteEmployees) returns 5 if the number of Person values in the field is 5.

Supported data types

Input type

Return type

Logic

String or list of items

Number

Returns the number of items in a list or set, or the length of a String.

Unsupported data types

Null

Unsupported data types return Null.



Updated 04 Oct 2023
Doc contributor
Did this page help you?