AND operator (logical)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns a TRUE value if each logical expression is TRUE.
Syntax
|
- expression
- An expression that evaluates to a logical value (TRUE or FALSE).
Note: It is possible for an operand to
evaluate to the Unknown value (
?). For an
AND operation, the result is FALSE if either operand evaluates to FALSE
(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 all customers with credit limits between two values (supplied by the user and stored in the variables low-credit and hi-credit). The expressions Customer.CreditLimit >= low-credit and Customer.CreditLimit <= hi-credit are logical expressions because each yields a true or false value. Using the AND operator to join these logical expressions results in a logical expression that follows the WHERE keyword.
r-and.p
|
See also
NOT operator (logical), OR operator (logical), Work with logical data