Unitary

Pre-APOGEE

APOGEE

BACnet

PXC.A

Syntax

If (cond1.OR.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 at least one of the conditions is true, the result of the statement is true.
  • A single statement can incorporate a combined total of 16 relational and logical operators.

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

Table 1-2. Truth Table for .OR. Logical Operator.

 

Condition 1 False

Condition 1 True

Condition 2 False

Result is False

Results is True

Condition 2 True

Result is True

Result is True

Example

200 IF (TIME.LT.5:00.OR.TIME.GT.17:00) THEN ON(LIGHTS)