Fiveable
Fiveable

OR Operator

Definition

The OR operator is a logical operator that returns true if at least one of its operands is true; otherwise, it returns false.

Analogy

Imagine going shopping with your friend and you want to buy either ice cream or cookies. If you find either ice cream or cookies in the store, you'll be happy because your craving will be satisfied. But if neither ice cream nor cookies are available, you'll leave empty-handed.

Related terms

Logical Operator: Symbols or words used to perform logical operations such as AND, OR, and NOT.

Boolean Expression: An expression that evaluates to either true or false.

Short-circuit Evaluation: A process where the evaluation of a boolean expression stops as soon as the result can be determined.

"OR Operator" appears in:

collegeable - rocket pep

Are you a college student?

  • Study guides for the entire semester

  • 200k practice questions

  • Glossary of 50k key terms - memorize important vocab



© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.