-
Notifications
You must be signed in to change notification settings - Fork 546
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
[RFC] ElseIf #1127
Comments
This is already supported and always has been, it was added to the docs recently but the auto doc updates aren't hooked up right now. |
Great the hear, then this is a bug in the docs: https://wren.io/control-flow.html |
But now that I look at the site markdown in main there is an else if example: https://github.com/wren-lang/wren/blob/main/doc/site/control-flow.markdown#if-statements. Might just need to re-deploy the site. |
correct! thanks for filing an issue.
|
Proposal: Add
else if
/elif
to allow for chaining conditionals.Without a switch or match statement conditionals can easily explode into a spaghetti mess of nested if statements. Else if would allow for a more flat, clean decision tree.
The text was updated successfully, but these errors were encountered: