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
A boolean is a data type that can only have two possible values: true or false. It is often used in programming to make decisions and control the flow of a program.
A condition is an expression that evaluates to either true or false. It is used in programming to make decisions and control the flow of code.
Boolean operators: Boolean operators are symbols such as AND, OR, and NOT that allow you to combine multiple conditions together in order to create more complex expressions.
Control flow: Control flow refers to the order in which statements are executed in a program. Booleans play a crucial role in controlling the flow of code by determining which statements should be executed based on certain conditions.