Overview
Rule Helpers provide a fluent API to build rules programmatically instead of writing JSON.Comparison Operators
eq()
neq()
Numeric Operators
gt(), gte(), lt(), lte()
Logical Operators
and()
or()
not()
String Operators
contains()
startsWith()
endsWith()
regex()
Array Operators
in()
notIn()
Special Operators
between()
isNull()
isNotNull()
State Operators
changed()
changedBy()
changedFrom(), changedTo()
increased(), decreased()
Field Comparison
Compare two fields:Validation Helpers
email()
required()
ageRange()
isTrue(), isFalse()
Complete Example
Comparison: JSON vs Helpers
- JSON
- Helpers
