Unitary

Pre-APOGEE

APOGEE

BACnet

PXC.A

Syntax

If (cond1.XOR.cond2) then...

cond1,cond2

Defines a condition that is the result of a comparison between two values.

Use

  • Used to compare two logical conditions.
  • If cond1 is true and cond2 is false, the result of the statement is true. If cond1 is false and cond2 is true, this statement is also true.
  • A single statement can incorporate a combined total of 16 relational and logical operators.

See Table 1-3 for a comparison of conditions used with the .XOR. logical operator:

Table1-3.  Truth Table for .XOR. Logical Operator.

 

Condition 1 False

Condition 1 True

Condition 2 False

Result is False

Result is True

Condition 2 True

Result is True

Result is False

Example

200 IF (PMP1.EQ.ON.XOR.PMP2.EQ.ON) THEN NORMAL(PMPALM)