Defining Graphic Configuration Rules
- Last UpdatedJul 13, 2023
- 1 minute read
A rule defines an expression that determines if a given choice or option and its associated graphic layer is visible or hidden based on the evaluation of the rule to true or false.
Rules can consist of a single expression or compound expressions using Boolean keywords or operator characters:
|
Boolean Keywords |
AND, OR, NOT |
|
Operator Characters |
Period (.) A period concatenates a Choice Group to a Choice in a hierarchical expression. Pipe (|) A pipe evaluates to a Boolean OR. Ampersand (&) An ampersand evaluates to a Boolean AND. Exclamation point (!) An exclamation point evaluates to a Boolean NOT. Parentheses ( )A compound expression enclosed within parentheses is evaluated before other expressions in a rule |
Any other unlisted keywords or operator characters in a rule are treated as part of the references.
-
Compound expressions that include a Boolean keyword need to include blank spaces around the keyword.
ConditionA OR ConditionB
-
Compound expressions that include an operator character that evaluates to a Boolean condition do not require blank spaces.
ConditionA|ConditionB
-
A property attribute needs to be referenced by its hierarchical Choice Group name.
ChoiceGroup.Choice
-
Rules cannot reference a Choice Group alone. Rule expressions need to reference Choices within a Choice Group.
ChoiceGroup.Choice.
-
When an Option is renamed, the name change is updated in all referenced rule expressions.
-
An Option or a Choice can be deleted only if no graphics are associated with their default layers.