PML Customisation
User Guide
Control Logic
:
Jumping to a Labelled Line
: Conditional Jumping to a Labelled Line
Conditional Jumping to a Labelled Line
do !A
do !B to 3
!C = !A * !B
golabel /finished if (!C GT 100)
!Total = !Total + !C
enddo
enddo
label /finished
$P Total is $!Total
If the expression
!C GT 100
is
TRUE
there will be a jump to
LABEL /FINISHED
and PML execution will continue with the line
$P Total is $!Total
If the expression is
FALSE
, PML execution will continue with the line:
!Total = !Total + !C
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.