Composite
And
Use and to validates both rules are valid
v.val(50, ">18 and <60"); // true
v.val(70, ">18 and <60"); // falseOr
Use or to validates any of two rules is valid
v.val(50, "<18 or >60"); // false
v.val(70, "<18 or >60"); // trueNot
Use not() to negates any rule
v.val(50, "not(>60)); // trueLast updated
Was this helpful?