Page 1 of 1

LET S=S+50 without the LET

Posted: Wed Mar 07, 2018 4:13 pm
by Shaun_B
Consider this BASIC:

Code: Select all

  10 FOR S=-CODE "M" TO NOT PI STEP CODE "M"
  20 NEXT S
  30 PRINT AT NOT PI, NOT PI;"SCORE: ";S
  40 NEXT S
  50 GOTO 30
It works on EightyOne - in other words, each time you "NEXT S" you increase the S variable by the number specified in the "STEP" in line 10 (in this case 50)

I think this could be a byte-saver if used currectly.

Regards,

Shaun.

Re: LET S=S+50 without the LET

Posted: Wed Mar 07, 2018 8:57 pm
by XavSnap
:shock:
Cool...