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