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 YourselfComparisonWithBooleanLiteral
To test whether an expression is true or false, one must compare it to true or to falseMapToBooleanWithConditionalOperator
To map a boolean expression to a boolean, a conditional operator is necessaryMapToBooleanWithIf
To map a boolean expression to a boolean, an if statement is necessaryNoShortCircuit
&& and || always evaluate both operandsNoSingleLogicAnd
& is only a bitwise ANDNumericToBooleanCoercion
Numeric types can be coerced to booleanReferenceToBooleanCoercion
Every reference type can be coerced to boolean