Syntax
Arguments
No arguments.Optargs
No optional arguments.Returns
Returns
true if the value is false, and false if the value is true.Behavior
- Inverts the boolean value of the expression.
- Converts truthy values to
falseand falsy values totrue. - Commonly used to negate conditions in filters and logical expressions.
- Can be chained with other logical operators for complex conditions.
Notes & Caveats
- The
not()function operates on boolean values or expressions that evaluate to boolean. - When used with non-boolean values, RuloDB’s truthiness rules apply.
- Can be combined with other logical operators like
andandor.
Example
Filter users who are not premium
Filter for users in theusers table where the user is not a premium member.
Filter orders that are not completed
Get orders that have not been completed yet.Related Functions
eq- Logical Equality Operationne- Logical Inequality Operationlt- Logical Less Than Operationle- Logical Less Than or Equal Operationgt- Logical Greater Than Operationge- Logical Greater Than or Equal Operationand- Logical AND Operationor- Logical OR Operationfield- Referencing a Fieldtable- Referencing a Tablefilter- Filtering Documents
Found a typo? Or maybe a broken link? RuloDB is open-source, help us fix it!

