09-05-2017, 08:17 PM
Okay, after *a lot* of work, it's finally done.
Please, download version 1.6.10 and try to do it.
Also you can now use ON (expression) GOTO label1, label2, ... (up to 255 labels). Also ON ... GOSUB.
example:
(expression) can be any numerical expression (it will be converted to byte). If the result is 0, it will jump to the 1st label, 1, for the 2nd, etc...
If the result pass beyond the last label, no action is taken (the program continues normally).
Please, download version 1.6.10 and try to do it.
Also you can now use ON (expression) GOTO label1, label2, ... (up to 255 labels). Also ON ... GOSUB.
example:
Code:
ON RND * 4 GOTO label0, label1, label2
PRINT "3 or higher!"
END
label0:
PRINT "it was a 0"
END
label1:
PRINT "it was a 1"
END
label2:
PRINT "it was a 2"
(expression) can be any numerical expression (it will be converted to byte). If the result is 0, it will jump to the 1st label, 1, for the 2nd, etc...
If the result pass beyond the last label, no action is taken (the program continues normally).