OR operator (logical)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns a TRUE value if either of two logical expressions is TRUE.
Syntax
|
- 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
|