Reserved words

About reserved words

Reserved words or reserved phrases (like "starts with" or "is not null") have a predefined meaning in the Rule language.

Note that:

  • A keyword cannot be used as an identifier (variable, property, function name).
  • All keywords are NOT CASE SENSITIVE.

Incorrect uses:

  • field = getField(“PROP1”) // “field” is a reserved word for the FIELD type.
  • error = newError(“code”, “message”) // “error” is a reserved word for the ERROR type.

Reserved words

The following list displays the set of reserved words:

  • DEFINITION, IF, THEN, ELSE, DO
  • NOT, AND, OR, TRUE, FALSE
  • STRING, NUMBER, DATE, BOOLEAN, ERROR, FIELD, OBJECT, ELEMENT
  • STARTS WITH, CONTAINS, ENDS WITH, IN, NOT IN, IS NULL, IS NOT NULL, NULL

Related Links