Core Function isVarBool
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> isVarBool( $variable ) </pre> === Description === Checks if a variable is a boolean type. === Parameters === ==== variable ==== The variable to check. === Return Valu...") |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:37, 14 June 2015
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 );