numbas / editor

An editor for the Numbas e-learning system.
http://numbas.mathcentre.ac.uk
Apache License 2.0
59 stars 61 forks source link

Variable testing should stop and show an error as soon as a variable produces an error #790

Closed christianp closed 10 months ago

christianp commented 10 months ago

Here's a minimal example: https://numbas.mathcentre.ac.uk/question/share/view/398938e6-f8fe-4069-a21e-59ed3889eb8f

When evaluating the variable testing condition, it should stop as soon as there's an error evaluating a variable. Instead, at the moment, it then tries to evaluate the testing condition and shows the error produced by that, typically "<variable name> is not defined".