IsBool( obj )
IsBool
returns true
if obj, which may be an object of an arbitrary
type, is a boolean value and false
otherwise. IsBool
will signal an
error if obj is an unbound variable.
gap> IsBool( true ); true gap> IsBool( false ); true gap> IsBool( 17 ); false
GAP 3.4.4