This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| crpl:docs:break [2013/01/14 19:06] – created virgilw | crpl:docs:break [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | TODO | + | |
| + | <- [[crpl: | ||
| + | ===== break ===== | ||
| + | |||
| + | ^Arguments^Result^Notation^ | ||
| + | | | |'' | ||
| + | |||
| + | |||
| + | === Description === | ||
| + | Immediately exits the body of a ' | ||
| + | === Examples === | ||
| + | < | ||
| + | # Iterate from 0 to 9, but only trace numbers from 0 to 5. | ||
| + | |||
| + | ShowTraceLog | ||
| + | ClearTraceLog | ||
| + | 10 0 do | ||
| + | I Trace | ||
| + | I 5 gte if | ||
| + | break | ||
| + | endif | ||
| + | loop | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # Trace random numbers between 0 and 9, until we find number 0. | ||
| + | |||
| + | ShowTraceLog | ||
| + | ClearTraceLog | ||
| + | while TRUE repeat | ||
| + | 0 10 RandInt -> | ||
| + | < | ||
| + | < | ||
| + | break | ||
| + | endif | ||
| + | endwhile | ||
| + | </ | ||