Syntax
Arguments
List of arguments to provide.The value to compare with.
Optargs
No optional arguments.Returns
Returns
true if both values are true and false otherwise.Behavior
- Performs logical AND operation on two boolean values.
- Returns
trueonly when both the original value andotherValuearetrue. - Can be chained with other logical operators for complex conditions.
Notes & Caveats
- Both values are evaluated as booleans using RuloDB’s truthiness rules.
- The operation is short-circuited: if the first value is
false, the second is not evaluated.
Example
Filter users by age and country
Filter for users who are adults and from the USA.Multiple conditions
Chain multiple AND conditions together.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 Operationor- Logical OR Operationnot- Logical NOT Operationfield- Referencing a Fieldfilter- Filtering Documents
Found a typo? Or maybe a broken link? RuloDB is open-source, help us fix it!

