PML Customisation
User Guide
Control Logic
:
DO Loops
: Nested DO Loops
Nested DO Loops
You
can nest
do
-loops one inside the other. The counter for each loop must have a different name.
do !X to 10
do !Y
!Z = !X + !Y
break if (!Y GT 5)
enddo
enddo
The inner-most loop goes through all the values of
!Y
before the outer loop moves on to the second value of
!X
.
Note:
The
break
(or
skip
) command acts just on the loop containing it - in this case the inner-most loop.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.