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 Boolean13 documented Misconceptions
Check YourselfComparisonWithBooleanLiteral
To test whether an expression is true or false, one must compare it to true or to false
MapToBooleanWithConditionalOperator
To map a boolean expression to a boolean, a conditional operator is necessary
MapToBooleanWithIf
To map a boolean expression to a boolean, an if statement is necessary
NoShortCircuit
&& and || always evaluate both operands
NoSingleLogicAnd
& is only a bitwise AND
NumericToBooleanCoercion
Numeric types can be coerced to boolean
ReferenceToBooleanCoercion
Every reference type can be coerced to boolean