Update legacy expressions script leaves errors
I have LOTS of expresssions in my project, and I'm trying to update them to the new Javascript engine using the built-in "Update legacy expressions script".
However, some syntax errors still persists.
Take the following for example:
if (value<1) res=1;
if (value>maxValue) res=maxValue;
If I add "else before the second if, the error resolves (and I understand why).
However, I have thousands of such cases. Is there anyway to automatically fix them?
Thank you