The concept “the boolean type can only be used internally” is conceptually quite complicated. How about saying three things:
true is just 1 and false is just 0.
- In logical expressions we treat
0 as no – and any other number as yes.
- Any yes/no operator like
< or and returns 1 or 0.
The concept “the
booleantype can only be used internally” is conceptually quite complicated. How about saying three things:trueis just1andfalseis just0.0as no – and any other number as yes.<orandreturns1or0.