Data Management Capabilities > Managing Part Structures > Windchill Options and Variants Capabilities > Creating and Managing Enterprise-wide Definitions > Defining Global Rules for Options and Choices > Conditional Rules
  
Conditional Rules
Conditional rules enable you to control the desired behavior during the choice selection process in the Option filter. Conditional rules use the IF and THEN statements to specify when certain option choices should be included, enabled, disabled or required based on the choice selections that the user specified in the Option Filter. For example, if Country = USA, then disable COLOR = GREEN.
* 
Ability to create and manage conditional rules is an advanced capability subject to a separate license entitlement.
Conditional rules consist of two parts – IF and THEN. The IF part describes the selections that trigger a certain action. The IF part contains one or more Boolean expressions that refer to option choices. Expressions are combined by an OR.
* 
Conditional rules can refer to option choices that belong to different option pools. This is different for include, exclude, and enable rules where choices must come from the same option pool.
The THEN part describes the action that should be applied to a set of choices when the IF expression is evaluated to TRUE. The possible actions are: Disable, Enable, Include, Requires, Requires Single Select.
The rules are evaluated when you specify the choice selection criteria in the Option filter tab of the Edit Filter user interface.
The New Conditional Rule window (see the next figure) is used to enter the IF and THEN statements.
You can create conditional rules within an option pool (global rules) or within an option set (local rules). You can create, edit, and delete conditional rules from the Conditional Rules tab from the Option Pool or the Option Set page (see the next figure). Once created, you can see conditional rules in the Conditional Rules table.
The effect of conditional rules is observed during the Option filtering process. For example, if a conditional rule describes the following logic:
Selecting Color = Blue and Size = Medium causes Material = Plastic to be selected automatically (see the next figure).
Syntax for Creating Conditional Rules
Consider these guidelines for entering conditional rules:
A conditional rule can have multiple expressions in the IF part. Each row in the If section of the window represents an expression. The OR operator is implied between the rows of expressions. For example, two expressions can be combined in the following IF statement:
[Country = Canada && Language = French] OR [Country = Switzerland && Language = German]
The conditional rule can have multiple THEN statements. For example:
[Country = Canada && Language = French] OR [Country = Switzerland && Language = German] --> Include (Color = Red, Size = Medium) Enable (Speed = Fast)
Validating Expressions
In addition to the standard validation performed by the system, companies can implement a custom validation. For more information, see Validating Expressions.