Suppose there are two loops in the same script file:
//*---- Loop 1 ----*//
Let>k=0
Repeat>k
Add>k,1
....Do Process A
Until>k,5
//*---- Loop 2 ----*//
Let>k=0
Repeat>k
Add>k,1
....Do Process B
Until>k,5
After completing Process B, the control will be returned to Add>k,1 in the first loop. That's, Macro Scheduler seems to scan the REPEAT command from the beginning of the script. Please correct me if my observation is erroneous. The workaround solution is to avoid using identical counter variable such as "k" in the above sample.
Of course, it's more intuitive to assume that the control should have been returned to the nearest REPEAT, instead of the first REPEAT in the same script file, even though the REPEAT comamdns may have the same counter variable.
Thanks for your feedback in advance.