Skip to content

BREAK

FUNCTION

This command is used to terminate a DO WHILE or DO UNTIL loop.

SYNTAX BREAK

NOTES

  • BREAK will terminate the loop and execution will transfer to the statement following the ENDLOOP.

EXAMPLES

IF CUST-CODE LIKE “Z*” THEN BREAK

SEE ALSO

DO WHILE, DO UNTIL, CONTINUE

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF