title: How to add multiple statements inside a when statement in kotlin
body: <p>I am trying to have multiple statements for one condition. For example: this is a sample code for when statement.</p>
  
  <pre><code>when (x) {
      1 -&gt; print("x == 1")
      2 -&gt; print("x == 2")
       else -&gt; { // Note the block
          print("x is neither 1 nor 2")
     }
  }
  </code></pre>
  
  <p>When x is 1, I also want to have an extra statement like x += 10, how can I do it?</p>