# E4111

The usage of break statement is invalid.

This error happens when you use a `break` statement in the initialization,
condition, or update statement of a loop.

## Erroneous example

```{literalinclude} /sources/error_codes/4111_error/top.mbt
:language: moonbit
```

## Suggestion

Do not write a `break` statement in the initialization, condition, or update
statement of a loop. Put it in the loop body instead.

```{literalinclude} /sources/error_codes/4111_fixed/top.mbt
:language: moonbit
```
