AND and OR operators
These operators are used when there are more than one value to check. There are five value checks available: Values1…Values5.
The format of these operators is:
AND: value in {set of values}
OR: value in {set of values}The OR operation is the
default operation used to evaluate the ValuesN settings and can be omitted.The AND operator causes a test to be performed, even if the previous test was successful. The OR operator causes a test to be performed only if the previous test was not successful.
The operator keyword must be followed by a colon and blank, and must be the first part of the operator string. Specifying the keyword, colon, and blank for the OR operator is not required because it is the default.
This example illustrates using the AND operator. The first two values are defined as:
Value1: value in {1|2}
Value2: AND: value in {1}The error code values that correspond
to the values defined are: - Value1ErrorCode = E1
- Value2ErrorCode = E2
When the data field to be tested has a value of:
- 1
- No error code is assigned because both tests succeed.
- 2
- Error code E2 is set because the second test fails.
- any other value
- Error codes E1 and E2 are both set because both tests fail.