Boolean refers to a system of logical thought that is used to create true/false
statements. A Boolean value expresses a truth value
(which can be either true or false). Boolean logic was developed by
George Boole, an English mathematician and philosopher, and has become the
basis of modern digital computer logic.
HairColorBrown = True
EyeColorGreen = False
While HairColorBrown == True:
#Execute whatever you want while the variable is true
boolean isJavaFun = true;
boolean isFishTasty = false;
System.out.println(isJavaFun); // Outputs true
System.out.println(isFishTasty); // Outputs false
[0]
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.
[1]
In computer science, the Boolean data type is a data type that has one of two
possible values (usually denoted true and false) which is intended to represent
the two truth values of logic and Boolean algebra. It is named after George
Boole, who first defined an algebraic system of logic in the mid 19th century.
The Boolean data type is primarily associated with conditional statements,
which allow different actions by changing control flow depending on whether a
programmer-specified Boolean condition evaluates to true or false.
It is a special case of a more general logical data type (see probabilistic
logic)—logic doesn't always need to be Boolean.