Boolean
A Boolean value is a truth value and can be used as a condition.
Related concepts: ValueTypeConditional
Closest Wikipedia entry: Boolean data type
Misconceptions about Boolean12 documented Misconceptions
Check YourselfCompareBooleanToConstant — Scratch
To test whether an expression evaluates to true or false, one must compare it to a constantComparisonWithBoolLiteral — Python
To test whether an expression is True or False, one must compare it to True or to FalseComparisonWithBooleanLiteral — Java
To test whether an expression is true or false, one must compare it to true or to falseMapToBooleanWithConditionalOperator — Java
To map a boolean expression to a boolean, a conditional operator is necessaryMapToBooleanWithIf — Java
To map a boolean expression to a boolean, an if statement is necessaryMapToBooleanWithIf — Python
To map a boolean expression to a bool, an if statement is necessaryMapToBooleanWithTernaryOperator — Python
To map a boolean expression to a bool, a ternary conditional operator is necessaryNoShortCircuit — Java
&& and || always evaluate both operandsNoShortCircuit — Python
and/or always evaluate both operandsNoSingleLogicAnd — Java
& is only a bitwise ANDNumericToBooleanCoercion — Java
Numeric types can be coerced to booleanReferenceToBooleanCoercion — Java
Every reference type can be coerced to boolean