RebbVal
EN
EN
  • Getting Started
  • Overview
  • Concepts
  • List of rules
    • Age
    • Array
    • Boolean
    • Comparions
    • Composite
    • Datetime
    • Identifications
    • Internet
    • Localization
    • String
Powered by GitBook
On this page
  • And
  • Or
  • Not

Was this helpful?

  1. List of rules

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

PreviousComparionsNextDatetime

Last updated 4 years ago

Was this helpful?