INCLAN: break: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
m (1 revision)
No edit summary
Line 1: Line 1:
== Synopsis ==
'''break'''


Usage: break
       exit
       exit
       quit
       quit
       return
       return


Within macros these commands have the following effects:
== Description ==
 
Exits from the current do-loop. This command can only be used in macros, because loops are only allowed within macros.
 


break    exits from the current do-loop.
exit    returns from a macro to interactive input.  
exit    returns from a macro to interactive input.  
quit    exits from the program.
quit    exits from the program.

Revision as of 22:22, 18 February 2009

Synopsis

break

      exit
      quit
      return

Description

Exits from the current do-loop. This command can only be used in macros, because loops are only allowed within macros.


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.