Programming · Level 2 of 5
Boolean
A type with true and false values.
It represents logical conditions rather than arbitrary numerical magnitude.
Example
A flag indicates whether a file exists.
Listen to the definition and example
Audio transcript
Boolean. A type with true and false values. It represents logical conditions rather than arbitrary numerical magnitude. For example: A flag indicates whether a file exists.
Explore this concept
Why it matters
This helps you read implementation code and describe its behavior precisely.
Start with
Quick recall question
Try answering before looking back at the definition.