Page 3 of 3

Re: decisions re: BASIC and why?

Posted: Tue Feb 21, 2023 10:11 pm
by kelli217
rje wrote: Tue Feb 21, 2023 6:27 pm Along the lines of BASIC compatibility, I just tried this on the emulator.

Code: Select all

10 ? "uid: " u
20 ? "uname: " n$

u=400 : n$ = "dave" : run
The result: the variable namespace is cleared out before the BASIC program runs:

Code: Select all

UID  :   0
UNAME:
Is this correct behavior?
Yes. To do what you're attempting, you can use GOTO from immediate mode.

Re: decisions re: BASIC and why?

Posted: Wed Feb 22, 2023 4:22 am
by rje
GOTO!! Brilliant - thank you!