← the wiki

Boolean

A value with only two options: True or False. The fuel of every decision a program makes.

A boolean is the smallest possible answer: True or False, nothing else. Every comparison produces one — age >= 18, name == "frog" — and every conditional consumes one to pick its branch.

The name honors George Boole, who showed in 1847 that logic itself can be computed with just AND, OR, and NOT — the same three operations etched billions of times into every processor today.

The best way to make it stick: watch it run. Start an interactive lesson →