Progress
Language Reference


OR Operator

Interfaces
OS
SpeedScript
All
All
Yes

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).

EXAMPLE

This procedure lists customers who have no postal code (postal-code = "") or that have no telephone number (phone = ""). It also displays how many customers are in the list.

r-or.p
FOR EACH customer WHERE postal-code = "" OR phone = "":
    DISPLAY cust-num name (COUNT) city state postal-code phone.
END. 

SEE ALSO

AND Operator, NOT Operator


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095