Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array initialization bug (*solved*)
#9
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:
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).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)