# How to capture a for loop index after break?

**URL:** https://discourse.julialang.org/t/how-to-capture-a-for-loop-index-after-break/46342
**Category:** General Usage
**Created:** [September 9, 2020, 6:56pm UTC](https://discourse.julialang.org/t/how-to-capture-a-for-loop-index-after-break/46342 "2020-09-09T18:56:10Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![klaff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/klaff/32/7637_2.png) [@klaff](https://discourse.julialang.org/u/klaff)
#### Post date: [September 10, 2020, 8:53pm UTC](https://discourse.julialang.org/t/how-to-capture-a-for-loop-index-after-break/46342/21 "2020-09-10T20:53:29Z")

</div>

That’s amazing. I have no memory of `outer` and I would swear I’ve read that section.

---

<div class="post-metadata">

### Author: ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)
#### Post date: [September 10, 2020, 10:50pm UTC](https://discourse.julialang.org/t/how-to-capture-a-for-loop-index-after-break/46342/22 "2020-09-10T22:50:09Z")

</div>

Is `inner` another keyword? I can’t find it in the documentation.

---

<div class="post-metadata">

### Author: ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)
#### Post date: [September 10, 2020, 11:02pm UTC](https://discourse.julialang.org/t/how-to-capture-a-for-loop-index-after-break/46342/23 "2020-09-10T23:02:38Z")

</div>

`outer` and `inner` there are just variable names; i.e., it’s equivalent to

```julia
for foo * bar ∈ 1:3
    println(1 * 2)
end

```

[Previous page](https://discourse.julialang.org/t/how-to-capture-a-for-loop-index-after-break/46342.md?page=1)
