Function Reference
From Sputnik Wiki
(Difference between revisions)
(→Common Variable Functions) |
(→Console Functions) |
||
Line 7: | Line 7: | ||
* [[Core Function Print|Print( $variable )]] -- Prints an expressions string value to the console window. | * [[Core Function Print|Print( $variable )]] -- Prints an expressions string value to the console window. | ||
* [[Core Function Println|Println( $variable )]] -- Prints an expressions string value to the console window and inserts a newline charactor at the end. | * [[Core Function Println|Println( $variable )]] -- Prints an expressions string value to the console window and inserts a newline charactor at the end. | ||
+ | * [[Core Function Input|Input( $variable )]] -- Capture a string typed to console window. | ||
+ | * [[Core Function InputC|InputC( $variable )]] -- Capture a char typed to console window. | ||
==== Variable Type Conversions ==== | ==== Variable Type Conversions ==== |
Revision as of 03:40, 9 November 2011
Contents |
Function Reference
User Functions
Core Functions
Console Functions
- Print( $variable ) -- Prints an expressions string value to the console window.
- Println( $variable ) -- Prints an expressions string value to the console window and inserts a newline charactor at the end.
- Input( $variable ) -- Capture a string typed to console window.
- InputC( $variable ) -- Capture a char typed to console window.
Variable Type Conversions
- Byte( $variable ) -- Returns the 8-bit integer (whole number) representation of an expression.
- Int16( $variable ) -- Returns the 16-bit integer (whole number) representation of an expression.
- Int32( $variable ) (Alias: Int( $variable )) -- Returns the 32-bit integer (whole number) representation of an expression.
- Int64( $variable ) -- Returns the 64-bit integer (whole number) representation of an expression.
- Float( $variable ) -- Returns the 32-bit floating point representation of an expression.
- Double( $variable ) -- Returns the 64-bit floating point representation of an expression.
- String( $variable ) -- Returns the String representation of an expression.
Common Variable Functions
- isInt( $variable ) -- Checks if a variable is an integer type
- isFloat( $variable ) -- Checks if a variable is a float-type
- isNumber( $variable ) -- Checks if a variable is a integer or float-type
- isString( $variable ) -- Checks if a variable is a string type
- isArray( $variable ) -- Check if a variable is an array
- isHash( $variable ) -- Check if a variable is an hash
- isObj( $variable ) -- Check if a variable is an object type
- isClass( $variable ) -- Check if a variable's object type is a class
- isStruct( $variable ) -- Check if a variable's object type is a struct
Misc Functions
- Return( $variable ) -- Returns a result from a Function.
- Require( $variable ) -- Includes a file in the current script.