Error at line 2: Failed to reach end of input expression, likely malformed input
Error at line 2: Syntax error
Error at line 2: Halted
/////////////////////////////////////////////
Code:
memclear
graphics 300,300
timer 1000, [doit]
[top]
x = 0
gcls
text 10,100,"Anolog in",180 + 90
text 100, 250, "Time (1 second)",0
wait
[doit]
aOLD = a
a = io(ai) / 4
xOLD = x
x = x + 10
line xOLD,aOLD,x,a,5
if x > 300 then goto [top]
wait
///////////////////////////////////////////////////////////
Also tested this other syntax but the same gives me error in line 3
memclear
graphics
300 300
timer 1000, [doit]
What can it be?
Thank you very much for your help