Boolean
A value that is either TRUE or FALSE.
๐ In simple words
A value that is either TRUE or FALSE.
๐ Technical definition
A data type with exactly two values, TRUE and FALSE, produced by comparisons and combined with AND, OR and NOT.
Pseudocode example
1SET IS_ADULT = AGE >= 182IF IS_ADULT THEN3 DISPLAY "Welcome"4END IF
๐ Real-world analogy
A light switch: on or off, nothing in between.