44 Booleans

The two boolean values are true and false. They stand for the logical values of the same name. They appear mainly as values of the conditions in if-statements and while-loops.

This chapter contains sections describing the operations that are available for the boolean values (see Comparisons of Booleans, Operations for Booleans).

Further this chapter contains a section about the function IsBool (see IsBool). Note that it is a convention that the name of a function that tests a property, and returns true and false according to the outcome, starts with Is, as in IsBool.

Subsections

  1. Comparisons of Booleans
  2. Operations for Booleans
  3. IsBool
Previous Up Next
Index

GAP 3.4.4
April 1997