BREAK
Root / Documentation / [.]
Created:
Break out of a loop.
* Syntax
```sbsyntax
BREAK
```
The `BREAK` keyword causes the loop it is within to exit immediately. It can *only* occur inside of loops; using it outside of one is a syntax error.
* Examples
```sb4
LOOP
IF !RND(10) THEN BREAK
ENDLOOP
```
* See Also
- sbs:page/docs-sb4-for[`FOR` loop]
- sbs:page/docs-sb4-while[`WHILE` loop]
- sbs:page/docs-sb4-repeat[`REPEAT` loop]
- sbs:page/docs-sb4-loop[`LOOP` loop]
No posts yet (will you be the first?)