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