Skip to content

if/then/else, for, and old syntax #2216

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

Closed
erdnaxeli opened this issue Nov 7, 2021 · 3 comments
Closed

if/then/else, for, and old syntax #2216

erdnaxeli opened this issue Nov 7, 2021 · 3 comments

Comments

@erdnaxeli
Copy link

Hi,

This page talks about control structures. For the if/then/else it only expose the (new ?) syntax

if a < b then
  something
else
  something_else

But for the for or the while construct, it also show the old syntax with parenthesis around the condition and curly brackets. Isn't it a bit confusing? Should not the doc either:

  • present the old syntax for the if/then/else too
  • or present only the new syntax for all construct (my preferred solution)?
@SethTisue
Copy link
Member

present the old syntax for the if/then/else too

agree

@alvinj
Copy link
Contributor

alvinj commented Nov 10, 2022

I just looked at this bug and that page, and if I understand it right, I think this has been completed as part of #2481, and can be closed?

@erdnaxeli
Copy link
Author

I think you're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants