Basic Functions and Operators
Before going in note that any time VARNAME or FUNCNAME is written, it means a variable or function in the form Collection@Variableor a literal.
call
Syntax:
if
Syntax:
==, !=, <, >, <=, >=.
Syntax:
Prints the value of VARNAME to the console.
input
Syntax:
Gets user input from the console with prompt VARNAME2 and stores the result in VARNAME1.
timeit
Syntax:
loop
Syntax:
Loops from VARNAME1 to VARNAME2 (end value exclusive) and calls FUNCNAME in each iteration.
until_break
Syntax:
Loops until breaking and calls FUNCNAME in each iteration.
break
Syntax:
Exits the current loop immediately.
Variable Cloning
Syntax:
Clones the value of VARNAME2 into VARNAME1. This used when needing to temporarily store a value before modifying it, such as with a counter.
exec
Syntax:
Executes the commandline command in the string VARNAME.
Types
Syntax:
All variables are typed, if the type (_) is used the type is inferred, otherwise its explicit.
wait
Syntax:
Pauses execution for the number of seconds specified in VARNAME.
Shorthand Operator
Syntax:
The shorthand ? is used for the current collection instead of writing out the full name.
free
Syntax:
Frees the variable VARNAME from memory, allowing it to be reused. This is useful for either managing memory or making variables mutable.