DekGenius.com
[ Team LiB ] Previous Section Next Section

13.1 Boolean

A boolean is a datatype consisting of exactly two possible values, true and false.

class of true -- boolean
class of (1 < 2) -- boolean

The main use for a boolean is as a condition in a control statement, such as a repeat while block (Chapter 12). For the operators that generate and combine booleans, see Chapter 15.

    [ Team LiB ] Previous Section Next Section