BREAK - exit loop

 

SYNOPSIS

<BREAK>


DESCRIPTION
The BREAK statement exits the innermost enclosing looping statement, such as WHILE, SQL, LOOP, etc. It is useful for exiting a long loop quickly when the remaining iterations aren't needed.


EXAMPLE

<TIMPORT ROW $schema FROMFILE /tmp/mbox>
  <!-- stop before today's messages: -->
  <IF $Date gt "start of today">
    <BREAK>
  </IF>
  ... process current message ...
</TIMPORT>


CAVEATS
The BREAK statement was added in version 1.0.855300000 19970206.

Note that unlike in C, BREAK does not exit a SWITCH statement.


SEE ALSO
CONTINUE


Copyright © Thunderstone Software     Last updated: Sep 25 2019
Copyright © 2019 Thunderstone Software LLC. All rights reserved.