Home /  Mappings /  JSONata Operators / 

Boolean Operators

and (Boolean AND)

The 'and' operator returns Boolean true if both operands evaluate to true. If either or both operands is not a Boolean type, then they are first cast to a Boolean using the rules of the $boolean function.

Example

or (Boolean OR)

The 'or' operator returns Boolean true if either operand evaluates to true. If either or both operands is not a Boolean type, then they are first cast to a Boolean using the rules of the $boolean function.

Example

Please note that Boolean 'NOT' is a function, not an operator.

and (Boolean AND)or (Boolean OR)