Core Function isVarInt64

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> isVarInt64( $variable ) </pre> === Description === Checks if a variable is a signed 64-bit integer type. === Parameters === ==== variable ==== The variable to check. ...")
 
Line 26: Line 26:
  
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
$var1 = "check me";
+
$var1 = (Int64)100;
 
println( "Is it?: " . isVarInt64($var1) );
 
println( "Is it?: " . isVarInt64($var1) );
 +
// Alternative
 +
println( $var1 is Int64  );
 +
// Alternative
 +
println( $var1 ~~ Int64  );
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Core Function]]
 
[[Category:Core Function]]

Revision as of 14:28, 21 August 2013

isVarInt64( $variable )

Contents

Description

Checks if a variable is a signed 64-bit integer type.

Parameters

variable

The variable to check.

Return Value

Success: Returns 1.

Failure: Returns 0.

Remarks

None.

Example

$var1 = (Int64)100;
println( "Is it?: " . isVarInt64($var1) );
// Alternative
println( $var1 is Int64  );
// Alternative
println( $var1 ~~ Int64  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox