Next page | Contents page |

Boolean

Keywords true and false can be assigned to variables to make them hold boolean values.

Boolean variables can be interpreted as numbers when necessary: 1 (true) or 0 (false).

Numbers can also be interpreted as booleans: 0 is false, any non-zero number is true.

The result of a comparison is of boolean type.

Next page | Contents page |