> For the complete documentation index, see [llms.txt](https://nelson-9.gitbook.io/nelson/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nelson-9.gitbook.io/nelson/markdown/en/interpreter/break.md).

# break

exit evaluation loop.

## 📝 Syntax

* break

## 📄 Description

break statement is used to exit a loop prematurely.

break statement can be used inside a for or awhile loop.

## 💡 Example

```matlab

for i = 1:10
  if i == 5
   disp('i == 5');
   break;
  end
  disp(i)
end

```

## 🔗 See also

[return](/nelson/markdown/en/interpreter/abort.md).

## 🕔 History

| Version | 📄 Description  |
| ------- | --------------- |
| 1.0.0   | initial version |
