Previous Topic: ExampleNext Topic: Defining Compound Conditions


Compound Conditions

CA 2E compound conditions provide you with the ability to use complex condition expressions in any context where a simple action diagram condition is used.

Use Boolean logic operations as AND or OR in condition tests. There are three aspects of compound condition expressions:

  1. The ability to AND together or OR together condition tests.

    For example: (a AND b AND c), (a OR b OR c)

  2. The ability to parenthesize and mix logical operators.

    For example: (a AND b) OR (c AND d)

  3. The ability to test negation.

    For example: (a AND b) OR NOT c

CA 2E provides the following default logical operators for use with compound conditions:

Value

Description

&

AND operator

|

OR operator

(

left parenthesis

)

right parenthesis

!

NOT operator

These operators can be modified by changing the YACTCND model value using the YCHGMDLVAL command.