Closed krschwab closed 5 years ago
Currently the format is:
IF [CMP] THEN [STATEMENT] (ELSE [STATEMENT])
The CMP operator can be:
Your program is trying to do a boolean test, that could be added, but isn't expected to work right now.
(The error you get is not great, it tried to parse the expression, jumping foward, and it went too far.)
Got it. I suppose I can just convert to "IF (WHATEVER)>0" so it's not a barrier.
This works as expected:
IF 1=1 THEN PRINT "TEST"
This, however, failsIt seems to work fine in other basic interpreters I tried.