Documentation Center

CEL literals

CEL accepts literals for every data type, as well as a null variable, arrays and maps.

Data type literals

Data typeLiteral values
integerany series of digits
floatany series of digits that include a decimal point
stringany series of alphanumeric characters enclosed in double or single quotes
Booleaneither true or false

Null variable

The value null is accepted as a null value.

Array and maps

An array is any comma-separated series of literals enclosed in square brackets, for example, [1, 2, "three"]. A map is any comma-separated property-value pair enclosed in curly brackets, and a property-value pair is any literal followed by a colon followed by another literal. { "one":1, "two" : 2, "three":3 } is an example of a map.