>: 1<2;into Hope. Hope replies:

>> true : boolThis means the value of

`1<2`

is `true`

and the type of `1<2`

is `bool`

which is short for Now try:

>: 1>2;Hope replies:

>> false : boolThis means the value of

`1>2`

is `false`

and the type of `1>2`

is
The values `true`

and `false`

are the *only* values whose type is boolean. Every boolean expression evaluates to either
`true`

or `false`

.

s.danicic@gold.ac.uk

Sebastian Danicic BSc MSc PhD (Reader in Computer Science)

Dept of Computing, Goldsmiths, University of London, London SE14 6NW

Last updated 2010-12-29