Core Function isVarUInt
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> isVarUInt( $variable ) </pre> === Description === Checks if a variable is an unsigned 32-bit integer type. === Parameters === ==== variable ==== The variable to check....") |
|||
Line 15: | Line 15: | ||
=== Return Value === | === Return Value === | ||
− | Success: Returns | + | Success: Returns true. |
− | Failure: Returns | + | Failure: Returns false. |
=== Remarks === | === Remarks === | ||
Line 26: | Line 26: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
− | $var1 = | + | $var1 = (uint)100; |
println( "Is it?: " . isVarUInt($var1) ); | println( "Is it?: " . isVarUInt($var1) ); | ||
+ | // Alternative | ||
+ | println( $var1 is UInt32 ); | ||
+ | // Alternative | ||
+ | println( $var1 ~~ UInt32 ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Latest revision as of 10:32, 29 August 2013
isVarUInt( $variable )
Contents |
Description
Checks if a variable is an unsigned 32-bit integer type.
Parameters
variable
The variable to check.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
None.
Example
$var1 = (uint)100; println( "Is it?: " . isVarUInt($var1) ); // Alternative println( $var1 is UInt32 ); // Alternative println( $var1 ~~ UInt32 );