---
title: break
categories: |
core
version: 0.104.0
core: |
Break a loop.
usage: |
Break a loop.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `break` for [core](/commands/categories/core.md)
<div class='command-title'>Break a loop.</div>
## Signature
```> break {flags} ```
## Input/output types:
| input | output |
| ------- | ------- |
| nothing | nothing |
## Examples
Break out of a loop
```nu
> loop { break }
```
## Notes
This command is a parser keyword. For details, check:
https://www.nushell.sh/book/thinking_in_nu.html
break can only be used in while, loop, and for loops. It can not be used with each or other filter commands