Abstract
Learn how to write a RULE section in a Data Model Rules file and about the syntax to use in the file.
Rules are very similar to functions in modern programming languages. They are essentially named pieces of Cortex Query Language (XQL) syntax, and can be reused in the code in the MODEL sections, or in other RULE sections (recursively), by using [rule:ruleName]. A RULE is an optional data model syntax.
RULE syntax is derived from XQL with a few modifications, as explained in the Data Model Rules file structure and syntax.
Note
For more information on the XQL syntax, see the XQL Language Reference Guide.