Boolean literal

Learn how to represent binary values, such as true/false, yes/no, or on/off.

Booleans are simple literals that represent binary values, such as true/false, yes/no, or on/off. They are commonly used in conditionals, filters, and other places where you need to make a binary decision.

To represent a boolean value, write it literally in your query:

true // or false
Try in Playground

Note that CQL is case-insensitive, meaning that you can write boolean values in lowercase or uppercase.