We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In this example:
if 1 println "one" elif 2 println "two" elif 3 / 0 println "oops" endc
it prints one without an error. However, change if 1 to if 0, and it prints two but then evaluates the 3 / 0 and has a fatal "Division by zero" error.
one
if 1
if 0
two
3 / 0
pret pokecrystal works around this by turning an elif into a nested else if in its dict macro.
elif
else if
dict
The text was updated successfully, but these errors were encountered:
This might have to wait for lazy-evaluated expressions.
Sorry, something went wrong.
Do not evaluate an untaken ELIF's condition
bd3d438
Fixes gbdev#764
4366061
9046599
aa99ed0
Fixes #764
Successfully merging a pull request may close this issue.
In this example:
it prints
one
without an error. However, changeif 1
toif 0
, and it printstwo
but then evaluates the3 / 0
and has a fatal "Division by zero" error.pret pokecrystal works around this by turning an
elif
into a nestedelse if
in itsdict
macro.The text was updated successfully, but these errors were encountered: