Core Function isVarBool

From Sputnik Wiki
Revision as of 14:18, 21 August 2013 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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