IsBoolean

Determines if the object represents a boolean value

IsBoolean( value )

Returns: Boolean

Argument Description
value
any, required

Number or string

Examples

The following statements evaluate to true:

IsBoolean( true );
IsBoolean( false );
IsBoolean( 0 );
IsBoolean( -10.4 );
IsBoolean( 3.6 );
IsBoolean( "yes" );
IsBoolean( "no" );
IsBoolean( "true" );
IsBoolean( "false" );
IsBoolean( "0" );
IsBoolean( "-10.4" );
IsBoolean( "3.6" );

The following statements evaluate to false:

IsBoolean( Now() );
IsBoolean( {} );
IsBoolean( [] );
IsBoolean( QueryNew('') );
IsBoolean( "" );
IsBoolean( "a string" );

See also