Kabuto Account closed
Registered: Sep 2004 Posts: 58 |
C64/C128 BASIC "if string" bug
Interestingly, when doing a test like IF A$ THEN (instead of IF A$ <> "" THEN) the last numeric expression's result is used instead for determining whether to execute the code following THEN. So:
I=0:IF A$ THEN ?"1"
does not print 1 but
I=1:IF A$ THEN ?"1"
does. No matter what value is inside A$. |