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.
In simple words, Boolean logic refers to a form of algebra where the values of the variables are the truth values (also called Boolean values): "true" and "false," often denoted as 1 and 0 respectively.