Core Function isVarByte
From Sputnik Wiki
(Difference between revisions)
Line 27: | Line 27: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
$var1 = "check me"; | $var1 = "check me"; | ||
− | println( "Is it?: " . | + | println( "Is it?: " . isVarByte($var1) ); |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Revision as of 20:14, 4 December 2011
isVarByte( $variable )
Contents |
Description
Checks if a variable is a unsigned 8-bit integer type.
Parameters
variable
The variable to check.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None.
Example
$var1 = "check me"; println( "Is it?: " . isVarByte($var1) );