boolean
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.
4.25
4
In computer science, the Boolean data type is a data type that has one of two possible values 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.
Thank you!
4
0
4
9
bool isCSharpFun = true;
bool isFishTasty = false;
Console.WriteLine(isCSharpFun); // Outputs True
Console.WriteLine(isFishTasty); // Outputs False
Thank you!
9
0
3.91
10
0 (for false)
1 (for true)
Thank you!
10
0
3.57
7
bool x = true;
if (x) { print ("Hello") }
Thank you!
7
0
Are there any code examples left?
New code examples in category Other