The two boolean constants are written as true and false. Boolean
values are generated by the relational operators. You can use the standard
logical operators (&&, ||
, !). You can use a boolean type
as an argument in an if-then-else expression.
As with C, the logical operators do not evaluate their right-hand sides if their value can be determined just from evaluating their left-hand sides.
true && false == false true error "boink!" == true
if true then 12 else 13 == 12