Contents > 8 Defining Custom Design Metrics and Rules > 8.5 Expression Terms > 8.5.4 Condition Expressions > 184.108.40.206 Logical Operators
220.127.116.11 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 18.104.22.168 "Boolean Functions"||Contents||Section 8.5.5 "Expression Terms and XML"|