Core Function isVarBool

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> isVarBool( $variable ) </pre> === Description === Checks if a variable is a boolean type. === Parameters === ==== variable ==== The variable to check. === Return Valu...")
Newer edit →

Revision as of 14:18, 21 August 2013

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