Break: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= break =
     
Usage: break
Usage: break
       exit
       exit

Latest revision as of 19:12, 28 January 2009

break

Usage: break

      exit
      quit
      return

Within macros these commands have the following effects:

break exits from the current do-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.