Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected if then else behaviour #4

Open
alejho opened this issue Jun 24, 2021 · 0 comments
Open

Unexpected if then else behaviour #4

alejho opened this issue Jun 24, 2021 · 0 comments

Comments

@alejho
Copy link

alejho commented Jun 24, 2021

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 added a commit to alejho/ubasic that referenced this issue Jul 5, 2021
This commit fix this issue (I hope) : adamdunkels#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant