-
Notifications
You must be signed in to change notification settings - Fork 138
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
Checking that a local expression is zero #585
Milestone
Comments
Yes, I think it is undocumented but you can do, e.g.,
|
Many thanks! |
We should an explanation of this (and UNCHANGED_) to the manual. |
This loops over all local expressions though, right? Is there a way to check just one specific expression? |
Sure, you use ZERO_exprname for whichever exprname you want. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear all,
I know that it's a stupid question, but I really wasn't able to find an elegant way solve it without complicating
everything too much. So is there a simple way to check if the given local expression is zero during the execution?
Consider for example
here
exp1
becomes zero after theid
statement, whileexp2
is not zero. Ideally, I would like to detectexp1
vanishing and finish the program right here (or maybe jump to the end), instead of going through all the subsequent code instructions.Cheers,
Vlad
The text was updated successfully, but these errors were encountered: