Syntax
Arguments
List of arguments to provide.The value to compare with.
Optargs
No optional arguments.Returns
Returns
true if either value is true and false otherwise.Behavior
- Performs logical OR operation on two boolean values.
- Returns
truewhen at least one of the values istrue. - 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
true, the second is not evaluated.
Example
Filter for shipped or delivered orders
Filter for orders where the status is either shipped or delivered.Filter by multiple categories
Filter for products in either electronics or books categories.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 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!

