What are Operators?
Operators are the building blocks of rules in Rule Engine JS. Each operator implements specific logic for comparing, transforming, or validating data.Rule Engine JS includes 20+ built-in operators organized into 7 categories, plus support for custom operators.
Operator Categories
Comparison
Compare values:
eq, neq, gt, gte, lt, lteLogical
Combine conditions:
and, or, notString
Text operations:
contains, startsWith, endsWith, regexArray
Array membership:
in, notInNumeric
Number operations:
betweenSpecial
Null checks:
isNull, isNotNullState
State changes:
changed, changedBy, changedFrom, changedTo, increased, decreasedQuick Reference
Using Operators
- Direct JSON
- Rule Helpers
Custom Operators
Create custom operators for business-specific logic:Custom operators integrate seamlessly with built-in operators and rule helpers.
Next Steps
Operators Overview
Complete reference of all operators
Comparison Operators
Detailed comparison operator docs
