Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Conditional Jumping to a Labelled Line

  • Last UpdatedOct 24, 2022
  • 1 minute read

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

TitleResults for “How to create a CRG?”Also Available in