๐Ÿ’ปap computer science a review

|| (OR) operator

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

The || operator is a logical operator that returns true if at least one of its operands is true, and false otherwise.

"|| (OR) operator" also found in:

|| (OR) operator Definition - AP Computer Science A Key Term | Fiveable