ptp
USA
Asked
— Edited
Resolved by DJ Sures!
The code below does not work:
1: ClearVariables()
2: $status = -1
3: $retry = 3
4: if ($retry<3 AND $status<0)
5: #do something
6: endif
error:
Quote:
Error on line 4: Missing String Quotes or Invalid Expression at index 8: -
the code works when the status variable has a non negative number.
RepeatWhile and RepeatUntil are also affected
this was the initial code (stops working when status is negative)
to overcome the bug, i end up changing the logic and the code became more complex to read.
These variations seem to work:
fixed in next release
PS - also, thanks for the examples @WBS and @ptp . It helps identify the solution with use case examples. Usually someone just says "this doesn't work" and i have to guess what they were trying to do
Thanks