44.3 IsBool

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 

Previous Up Top
Index

GAP 3.4.4
April 1997