# Will "It" variable stay or go?

**URL:** <https://discuss.kotlinlang.org/t/will-it-variable-stay-or-go/522>\
**Category:** Uncategorized\
**Created:** [April 12, 2014, 12:25pm UTC](https://discuss.kotlinlang.org/t/will-it-variable-stay-or-go/522 "2014-04-12T12:25:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [April 18, 2014, 8:54pm UTC](https://discuss.kotlinlang.org/t/will-it-variable-stay-or-go/522/8 "2014-04-18T20:54:49Z")

</div>

&nbsp;

```kotlin
class Tree(val data: String, children: List<Tree>)
tree.forEach {
  if (it.data != “special”) {
  it.children.filter {
  it.data == “special” // it’s NOT the same “it.data” as two lines above, but nothing suggests that in the syntax
  }
  }
}

```

Worse than that: sometimes it's the same "it.data": when the nested lambda does not have a parameter at all

---

_[View the full topic](https://discuss.kotlinlang.org/t/will-it-variable-stay-or-go/522)._
