Examples of Expression Rules

This topic shows examples of expression rules.

This page discusses:

Numerical Parameter Value as a Condition

You can use the value of a numerical parameter named Elevator Height Continuous as a condition to require the selection of a Cabin Type value or prevent the selection of another Cabin Type value. For example:

EVAL ( Elevator Height Continuous ≤ 25000 ) IMPLY Cabin Type Classic AND EVAL ( Elevator Height Continuous ≤ 40000 ) IMPLY ( NOT Cabin type Premium )

Restriction of a Range

To restrict the range of a numerical parameter, use two EVAL statements. For example:

EVAL ( 2 < parameter1 ) AND EVAL ( parameter1 < 10 )

Numerical Parameter as Mandatory

To specify conditions that make a numerical parameter mandatory, select the conditions, add the IMPLY statement, and select the numerical parameter. For example, the following expression rule determines that if you select the Asia value from the Region variant, the Length parameter is mandatory:

Region Asia IMPLY Length

Numerical Parameter as Incompatible

To make a numerical parameter incompatible, use the IMPLY NOT statement. For example:

Region Asia IMPLY NOT Length