EQUATIONS
To perform a mathematics equation you must wrap the equation in brackets. See the following examples.
Example
DEF add%=(1+1)
PRINT "add = " . add%
LINE BREAK
DEF sub%=(10-add%)
PRINT "sub = " . sub%
LINE BREAK
DEF divide%=(sub%/2)
PRINT "divide = " . divide%
LINE BREAK
DEF times%=(divide%*2)
PRINT "times = " . times%
LINE BREAK
DIM array_numbers%=(1, 2, 3, 4, 5)
DEF array_times%=(times%*array_numbers%(3))
PRINT "array_times = " . array_times%
Output
add = 2
sub = 8
divide = 4
times = 8
array_times = 32
sub = 8
divide = 4
times = 8
array_times = 32