INCLAN: break: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:


'''break'''
'''break'''
      exit
      quit
      return


== Description ==
== Description ==


Exits from the current do-loop. This command can only be used in macros, because loops are only allowed within macros.
Breaks a do-loop and is only allowed in macros. The execution of the macro is continued with the first statement following the loop.
 
 
exit    returns from a macro to interactive input.
quit    exits from the program.
return  exits from the current macro and returns to the calling macro or,
        if the macro was called interactively, to interactive input.
 
In interactive mode, "exit", "quit" and "return" exit from the program, and
"break" is not allowed, because loops are only allowed within macros.

Latest revision as of 14:36, 13 August 2009

Synopsis

break

Description

Breaks a do-loop and is only allowed in macros. The execution of the macro is continued with the first statement following the loop.