When I place an action logic line that contains the word TIME (e.g. VATIME) before my actual TIME statement, I get an error saying “Missing ‘)’ in expression”.
This error is caused by a very specific set of conditions.
- You must have an action logic line that contains the word TIME (e.g. v_CheckTime)
- That same line of code must also include parentheses following the word “time”
- That line must appear before an actual TIME statement
v_Check_Time = Clock() – CycleStart
The TIME statement is being parsed for proper syntax. But because of a bug where only the first occurrence of the word TIME is being checked, the actual time statement is misinterpreted, producing the syntax error.
If possible, move the action logic containing the word TIME (prior to the actual TIME statement) to the route or activity prior to the problem location. Or, if you can, change the name of the variable or attribute containing the word TIME.