In Dynamicweb 8.2.3, we introduced a better – and more strict – if parser in our template engine, see Important Notes for Dynamicweb 8.2.3.
I have been faced with the challenge of fixing if errors in some templates, and to help me fix those I created a small script for identifying templates containing errors.
I've shared the script on Github: https://github.com/mri-dynamicweb/misc/tree/master/templates. It's a quick and dirty solution, but it does the job and you may find it useful.
Best regards,
Mikkel