Programmer Guide/Command Reference/FOREVER: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 4: Line 4:
or
or
  DO FOREVER
  DO FOREVER
Cave: If you do ''not'' use a <code>[[Programmer Guide/Command Reference/BREAK|BREAK]]</code>,<code>EXIT</code>, or [[Programmer Guide/Command Reference/GOTO|GOTO]] command for interrupting the loop, it may run for a really long time.
Cave: If you do ''not'' use a <code>[[Programmer Guide/Command Reference/BREAK|BREAK]]</code>, <code>[[Programmer Guide/Command Reference/EXIT|EXIT]]</code>, or [[Programmer Guide/Command Reference/GOTO|GOTO]] command for interrupting the loop, it may run for a ''really'' long time.
<!-- C.G. 23.3.2011 -->
<!-- C.G. 23.3.2011 -->

Revision as of 20:24, 23 March 2011

The FOREVER, or DO FOREVER, statement starts a, potentially infinite, loop. The commands between FOREVER or DO FOREVER and the corresponding END statement are being executed forever, or until execution of the loop gets interrupted by other means, e.g. by S_TOOLS-STx crashing, a BREAK statement being encountered, or an EXIT, or a GOTO statement being executed.

FOREVER

or

DO FOREVER

Cave: If you do not use a BREAK, EXIT, or GOTO command for interrupting the loop, it may run for a really long time.

Navigation menu

Personal tools