# Assignments are not expressions and only expressions are allowed in this context

**URL:** <https://discuss.kotlinlang.org/t/assignments-are-not-expressions-and-only-expressions-are-allowed-in-this-context/6232>\
**Category:** Android\
**Created:** [January 15, 2018, 1:01pm UTC](https://discuss.kotlinlang.org/t/assignments-are-not-expressions-and-only-expressions-are-allowed-in-this-context/6232 "2018-01-15T13:01:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![forinil2](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/forinil2/32/2465_2.png) [@forinil2](https://discuss.kotlinlang.org/u/forinil2)\
**Post date:** [January 15, 2018, 1:05pm UTC](https://discuss.kotlinlang.org/t/assignments-are-not-expressions-and-only-expressions-are-allowed-in-this-context/6232/2 "2018-01-15T13:05:02Z")

</div>

This was already discussed [here](https://discuss.kotlinlang.org/t/assignment-not-allow-in-while-expression/339)

---

_[View the full topic](https://discuss.kotlinlang.org/t/assignments-are-not-expressions-and-only-expressions-are-allowed-in-this-context/6232)._
