# [−]Keyword continue

Skip to the next iteration of a loop.

When `continue` is encountered, the current iteration is terminated, returning control to the loop head, typically continuing with the next iteration.

     // Printing odd numbers by skipping even ones
     for number in 1..=10 {
         if number % 2 == 0 {
             continue;
         }
         println!("{}", number);
     }Run

Like `break`, `continue` is normally associated with the innermost enclosing loop, but labels may be used to specify the affected loop.

     // Print Odd numbers under 30 with unit <= 5
     'tens: for ten in 0..3 {
         'units: for unit in 0..=9 {
             if unit % 2 == 0 {
                 continue;
             }
             if unit > 5 {
                 continue 'tens;
             }
             println!("{}", ten * 10 + unit);
         }
     }Run

See continue expressions from the reference for more details.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)

You can look for items with an exact name by putting double quotes around your request: `"string"`

Look for items inside another one by searching for a path: `vec::Vec`