Contents > 8 Defining Custom Design Metrics and Rules > 8.5 Expression Terms > 8.5.4 Condition Expressions > 22.214.171.124 Logical Operators
126.96.36.199 Logical Operators
Logical operators can be used to combine condition expressions. The
logical operators allowed are
As usual, ! has precedence over & which has precedence over |.
- A & B (or A and B to avoid conflict with the XML
special character &, see Section 8.5.5 "Expression Terms and XML") - true if both condition
expressions A and B are true, else false.
- A | B - true if at least one condition expression A or B is true,
- !A - true if A is not true, else false.
An example of a condition expression with logical operators is:
(NumOps>5) & (!(NumAttr=3 | islowercase(name))
|Section 188.8.131.52 "Boolean Functions"||Contents||Section 8.5.5 "Expression Terms and XML"|