The system.rules library defines a set of functions and classes to evaluate some basic or complex conditions in your applications.
Classes
- And
- BooleanRule
- DivBy
- EmptyString
- Equals
- Even
- False
- GreaterOrEqualsThan
- GreaterThan
- IsBoolean
- IsNaN
- IsNumber
- IsString
- LessOrEqualsThan
- LessThan
- Not
- NotEquals
- Null
- Odd
- Or
- True
- Undefined
- Zero
Methods
-
<static> exports.isRule(target)
-
Indicates if the specific objet is a
system.rules.Ruleobject and contains anevalmethod.Parameters:
Name Type Description targetObject The object to validate.
Returns:
trueif the object is asystem.rules.Ruleinstance.