Sometimes, I add expected totals partway down a page. If I have errors in calculations, then periodic assertions helps me isolate where calculations have gone awry. Something like
assert total = 1234
. It would be especially useful if it could be used in conjunction with subtotal lines. I was picturing something like Python's assert statement (https://realpython.com/python-assert-statement/#understanding-pythons-assert-statements) but I'm not picky about the exact syntax.
I can sort of do this with the boolean comparisons, but it would be nice to have those light up red if the assertion fails (rather than just showing "false", which doesn't stand out much). Something like a❗in the answer pane would be great.
Thank you!