Closed poppichicken closed 9 hours ago
By the way, CGOTO works as expected.
DIM x AS BYTE
x=30
CGOTO x
10 PRINT 10:END
20 PRINT 20:END
30 PRINT 30:END
That's a very cool command!
Hi @poppichicken and thank you for your kind bug report!
I'm expecting it to print 30, but it does the following:
The behavior is correct, because you asked to jump to the 30th option, which is not present. So the execution continues, printing the first entry. If you want it to print 30, you would use x = 3
. I will add more examples on the manual, to better clarify the behavior.
Thank you again!
Ah yes, I thought I was indeed misunderstanding. In fact I now remember reading something similar earlier in the manual.
hi Marco.
My apologies if I am misunderstanding. I don't want to waste your time needlessly.
I'm expecting it to print 30, but it does the following: