Home Explore Blog CI



nushell

commands/docs/continue.md
75fde01c620fac4368140069a0a99169e66ae7bc81159c3000000003000003a0
---
title: continue
categories: |
  core
version: 0.104.0
core: |
  Continue a loop from the next iteration.
usage: |
  Continue a loop from the next iteration.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `continue` for [core](/commands/categories/core.md)

<div class='command-title'>Continue a loop from the next iteration.</div>

## Signature

```> continue {flags} ```


## Input/output types:

| input   | output  |
| ------- | ------- |
| nothing | nothing |
## Examples

Continue a loop from the next iteration
```nu
> for i in 1..10 { if $i == 5 { continue }; print $i }

```

## Notes
This command is a parser keyword. For details, check:
  https://www.nushell.sh/book/thinking_in_nu.html

  continue can only be used in while, loop, and for loops. It can not be used with each or other filter commands

Chunks
167e1793 (1st chunk of `commands/docs/continue.md`)
Title: continue command in Nushell
Summary
The `continue` command in Nushell is used to skip the current iteration of a loop and proceed to the next one. It can be used in `while`, `loop`, and `for` loops, but not with `each` or other filter commands.