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

Currently RebbVal does not support negates a composite of rules, which means you can't do this:

v.val(50,"not(<18 or >60)"); // error, not supported

Last updated

Was this helpful?