Core Function isVarSByte

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 15: Line 15:
 
=== Return Value ===
 
=== Return Value ===
  
Success: Returns 1.
+
Success: Returns true.
  
Failure: Returns 0.
+
Failure: Returns false.
  
 
=== Remarks ===
 
=== Remarks ===
Line 26: Line 26:
  
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
$var1 = "check me";
+
$var1 = (sbyte)100;
 
println( "Is it?: " . isVarSByte($var1) );
 
println( "Is it?: " . isVarSByte($var1) );
 +
// Alternative
 +
println( $var1 is SByte  );
 +
// Alternative
 +
println( $var1 ~~ SByte  );
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Core Function]]
 
[[Category:Core Function]]

Latest revision as of 14:21, 21 August 2013

isVarSByte( $variable )

Contents

Description

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

Parameters

variable

The variable to check.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

None.

Example

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