# Swift Loops Control Transfer Statements

> Learn how to use the continue and break statements in Swift to control the flow inside a loop, skipping an iteration or ending the loop early.

Author: Flavio Copes | Published: 2021-05-28 | Canonical: https://flaviocopes.com/swift-loops-control-transfer/

> This tutorial belongs to the [Swift](https://flaviocopes.com/swift-introduction/) series

Swift provides you 2 statements that you can use to control the flow inside a loop: `continue` and `break`

`continue` is used to stop the current iteration, and run the next iteration of the loop.

`break` ends the loop, not executing any other iteration.

Example:

```swift
let list = ["a", "b", "c"]
for item in list {
  if (item == "b") {
    break
  }
  //do something
}
```
