In computer science, a boolean or bool is a data type with two possible values: true or false. It is named after the English mathematician and logician George Boole, whose algebraic and logical systems are used in all modern digital computers.
A subsection of mathematical logic, Boolean logic deals with operations involving the two Boolean values: true and false. Although Boolean logic dates back to the mid-19th century, it became foundational to modern computer programming and data querying through a method called Boolean algebra.