1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
.TH GOLF 2gg $VERSION $DATE Development Tools
.SH NAME
break-loop \- (program-flow)
.SH PURPOSE
Exit a loop.
.SH SYNTAX
.RS 4
.EX
break-loop
.EE
.RE
.SH DESCRIPTION
break-loop will exit a loop between \fBstart-loop\fP and end-loop, \fBrun-query\fP and end-query, or \fBread-line\fP and end-read-line statements. Execution continues right after the end of the loop.
.SH EXAMPLES
Exit the loop after 300 loops:
.RS 4
.EX
set-number max_loop = 300
start-loop repeat 1000 use i start-with 1
@Completed <<print-out i>> loops so far
if-true i equal max_loop
break-loop
end-if
end-loop
.EE
.RE
.SH SEE ALSO
Program flow
\fBbreak-loop\fP
\fBcall-handler\fP
\fBcode-blocks\fP
\fBcontinue-loop\fP
\fBdo-once\fP
\fBexit-handler\fP
\fBif-defined\fP
\fBif-true\fP
\fBquit-process\fP
\fBreturn-handler\fP
\fBstart-loop\fP
See all
\fBdocumentation\fP
|