OR

Performs a Boolean OR of two logic expressions.

Syntax

expression1 OR expression2

Parameters

expression1

A logic expression using conditional and Boolean operators. If the expression is complex, it must be enclosed in parentheses.

expression2

A logic expression using conditional and Boolean operators. If the expression is complex, it must be enclosed in parentheses.

Return Value

Logical, as follows:

Truth Table for Boolean OR

Expression1

True

False

Expression2

True

True

True

False

False

False

Example

The following expression is logically false only if Salary is 30,000 and Bonus is 0. In all other cases, the expression is logically true.

Salary <> 30000 or Bonus <> 0

 

Related Topics