| Syntax Color Legend |
|---|
| Command |
| Mandatory parameter |
| Optional parameter |
| Mandatory keyword |
| Optional keyword |
BREAK [OUTMOST]
Terminates the execution of the current loop and continues with the first line of code after the loop.
In the example below, after the first BREAK, code execution continues at LOOP FOR. After BREAK OUTMOST, it continues after the second ENDLOOP.
None
| Parameter | Description |
|---|---|
| OUTMOST | Terminates execution of all current nested loops and continues with the first line of code after the outermost loop. |
Break will break out of any loop including READFILE loops, etc.
loop for sn-vert := 1 to screen.occursvert
if screen[1, sn-vert] = '' then bk
loop for sn-horz := 1 to screen.occurshorz
if screen[sn-horz, sn-vert] = '' then bk outmost
if not screen[sn-horz, sn-vert] in ['', 'I', 'C', 'A', 'D']
smex ('Only I/C/A/D allowed!',, screen[sn-horz, sn-vert])
endif
endloop
endloop