> For the complete documentation index, see [llms.txt](https://aup.nomi.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aup.nomi.dev/the-language/control-flow/break-and-continue.md).

# Break & continue

To control the flow of a loop, we have two keywords **break** and **continue**.

## Break

**Break** is used to terminate the loop.

### Syntax

`break`

### Examples

#### Breaking down an infinite loop

```javascript
while true {
    break
}
```

```javascript
var i = 1

while i++ < 10 {
    if i == 5 {
        break
    }
    else {
        puts i
    }
}
```

## Continue

Continue is used to continue the loop contidion.

### Syntax

`continue`

### Examples

```javascript


for {
    
}
```
