Unexpected error while comparing time variable to other variables
I run into a weird issue and something non intuitive:
I applied this simple simplified expression to a property, however I get an unexpected error message.
if ((time >=0) && (time <2.5))
{var res=1500}
[res, res]
"Undefined value used in expression. Could be an out of range array subscript?"
I wonder what's causing this issue, aren't we allowed to compare the "time" variable to other values and use in a conditional statement?
I appreciate your help, if you can point me on how to correct this, or how to use someting else to get the same result.
Thanks for passing by this post.
