๐Ÿ“˜

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.

๐Ÿ”— Related concepts

โ† Whole glossary