This is on v2.080, v2.078 also has this problem, but not v1.1.26
This is just a sample, it may not make mathematical sense due to operator precedence, but it's still wrong that it doesnt work.
Code: Select all
sometime:=10
somevar:=5
finish:=sometime+(somevar*10000)
msgbox(finish)
Now, this only happens under the criteria that the variable name is either "time" or ends with the word "time", it can be preceded by anything, but as long as it ends in time it will trigger this, and, It also needs to be lacking a space either between the variable name ending in time and the + sign, or, the + sign and the (. It doesn't like + or - sign in that expression, but it works fine with * or /, if the variable name is for example, timex, then it works.
Well, I tested a bit more as I wrote this and it seems to be a problem with the parser in that it is not ignoring + and - sign when looking for functions. Basically, if you try variable+(whatever), and variable's name is or ends with the ending word of a function (command as function too, but not all of them), it will throw the exception.
For example, close+(somevar), size+(somevar), sense+(somevar), replace+(somevar) all throw the exception.