Core Function isVarInt

From Sputnik Wiki
Revision as of 14:24, 21 August 2013 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
isVarInt( $variable )

Contents

Description

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

Parameters

variable

The variable to check.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

Int is an alias for Int32.

Example

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