decorative banner

Previous | Next               Table Of Contents > 1 Basic syntax > 1.10 Forced exit from loops

1.10 Forced exit from loops

The exitloop command can be used to immediately exit from a loop. If this command is called from nested loops, the innermost loop is exited.

The syntax is


An example is

loop 100 begin

ftpconnect "", 21, "ftp", "";

if success eq ftpresult begin
exitloop; #exit loop immediately if connected


Previous | Next