ubasic icon indicating copy to clipboard operation
ubasic copied to clipboard

Unexpected if then else behaviour

Open alejho opened this issue 4 years ago • 0 comments

Playing this code from use-ubasic :

static const char program[] = "10 if 5<7 then print 111 else print 0\n\ 20 for i = 1 to 10\n\ 30 print i\n\ 40 next i\n\ 50 print \"end\"\n\ 60 end\n\ 100 print \"subroutine\"\n\ 110 return\n";

I would expect this output (tested here : http://www.quitebasic.com/)

111 1 2 3 4 5 6 7 8 9 10 end

Acutally I only get :

111

It's me missing something?

alejho avatar Jun 24 '21 14:06 alejho