Carrot reference
...
Fields
Data Types

List

A Carrot datatype used by fields that represent a list of other items. List fields can be indexed by numeric position.

The List datatype is supported in Custom Fields. Custom fields that are of type List are Multiple Select, Numeric Scale, and Smart Bucket.

Properties

The List datatype supports the following properties:

Property

DefinitionI

listField.length

Returns the number of items in the list.

listField.first

Returns the first item in the list.

listField.last

Returns the second item in the list.

listField.reversed

Returns the list in reverse order.



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