OR

OR

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

OR

Performs a Boolean OR of two logic expressions.

Syntax

expression1 OR expression2

Parameters

expression1A logic expression using conditional and Boolean operators. If the expression is complex, it must be enclosed in parentheses.
expression2A 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 ORExpression1
TrueFalse
Expression2TrueTrueTrue
FalseFalseFalse

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

See Also

About Boolean Expressions

About Conditional Expressions

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish