CEL literals
CEL accepts literals for every data type, as well as a null variable, arrays and maps.
Data type literals
| Data type | Literal values |
|---|---|
| integer | any series of digits |
| float | any series of digits that include a decimal point |
| string | any series of alphanumeric characters enclosed in double or single quotes |
| Boolean | either 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.