Repository navigation
Legacy documentation
Matto edited this page Jan 14, 2023
·
1 revision
This is legacy, get the new docs here!
The console object for manipulating text in the console.
Prints <text> to the console.
-
<addNewLine>- Whether or not to add a new line.
"nl"if yes, anything else if no.
- Whether or not to add a new line.
-
<text>- Text to print. If preceded with a dollar sign (
$), prints the variable$(varname).
- Text to print. If preceded with a dollar sign (
con.out nl Example
-
MTS-4:UnassignedVar
The FLEX (FiLe EXecutor) object.
Executes another file.
flex.file.exec hworld.mts
-
MTS-3:FileNotFound
Loads variables from another file.
-
<filename>- File name.
flex.file.loadVars hworldvar.mts
con.out nl $hworld
-
MTS-3:FileNotFound
The object for creating and calling user functions.
Initiates the function named <funcname>.
-
<funcname>- Function name.
func.start main
con.out nl Hello World!
func.end
Ends the function.
func.start main
con.out nl Hello World!
func.end
Calls the function named <funcname>.
-
<funcname>- Function name.
func.call main
Sets to variable .
-
<name>- Variable name. If not preceded with a dollar sign, variable will not be usable.
-
<val>- The value to assign to the variable. Cannot contain an equals sign.
var $example=Example
Halts the program.
halt