Basic operators
Boolean operators
Operators used to perform boolean operations.
$and
Returns true if all expressions are true.
{ "$and": ["boolean", "boolean", "..."] }
expry({ $and: [true, true, true] }); // true
expry({ $and: [true, false, true] }); // false
$not
Returns the opposite boolean value.
{ "$not": "boolean" }
expry({ $not: true }); // false
expry({ $not: false }); // true
$or
Returns true if any of the expressions are true.
{ "$or": ["boolean", "boolean", "..."] }
expry({ $or: [true, false, true] }); // true
expry({ $or: [false, false, false] }); // false