Returns a TRUE value if either of two logical expressions is TRUE.

Syntax

expression OR expression
expression
A logical expression (a constant, field name, variable name or expression whose value is logical, that is, TRUE/FALSE, YES/NO).
Note: It is possible for an operand to evaluate to the Unknown value (?). For an OR operation, the result is TRUE if either operand evaluates to TRUE (even if one of the operands is the Unknown value (?)). In all other cases, the result is the Unknown value (?) if an operand evaluates to the Unknown value (?).

Example

This procedure lists Customers who have no postal code (PostalCode = "") or that have no telephone number (Phone = ""), and displays how many Customers are in the list:

r-or.p

FOR EACH Customer NO-LOCK 
  WHERE Customer.PostalCode = "" OR Customer.Phone = "":
  DISPLAY Customer.CustNum Customer.Name (COUNT) Customer.City Customer.State
    Customer.PostalCode Customer.Phone.
END.

See also

AND operator (logical), NOT operator (logical)