Core Function isVarBool

From Sputnik Wiki
Jump to: navigation, search
isVarBool( $variable )

Contents

Description

Checks if a variable is a boolean type.

Parameters

variable

The variable to check.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

None.

Example

$var1 = true;
println( "Is it?: " . isVarBool($var1) );
// Alternative
println( $var1 is Bool );
// Alternative
println( $var1 ~~ Bool );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox