The validation code syntax is recursively defined as:

<validation code> -> { [NOT](<validation code>) | <validation code> { AND | OR} <validation code> | <literal> { > | < | = | >= | <= | LIKE } <literal> }
<literal> -> { value | <numeric literal> | '<string literal>' }

Examples: