[bug]failure to declare a variable causes assignment to fail without error

if i do not declare a variable, then assign it, the variable will remain undefined, even after assignment, but no error is thrown.
i don’t know if i should be admitting all the ways i write bad code…

Hi mikey,

in QodlyScript you must declare all your variables.
You should have a syntax error on lines where you try to use an undeclared variable.

Mathieu

1 Like

i understand that. the bug is that the syntax error is not thrown. i never get any indication that there is an error. i found it by looking at the code after encountering the variable not being assigned. this is similar to one of the other errors i reported over the weekend - it’s obviously an error, but the editor and the parser didn’t identify them, and simply allowed execution to proceed.