title: Kotlin: replace 'cascade if' with 'when' comparing with other variables
body: <p>I'm starting with Kotlin and I'm facing a problem.
  I have three constants (let's call them VAL_A, VAL_B and VAL_C) and I'm doing this assignation:</p>
  
  <pre><code>var variable = if (value &lt; VAR_A) {
              valueA
          } else if (value &lt;= VAR_B) {
              valueB
          } else if (value &lt;= VAR_C) {
              valueC
          } else {
              valueD
          }
  </code></pre>
  
  <p>I want to use a when block instead of the if else, but I don't know how to do the value &lt; VAR_A and the value > VAR_C ones.</p>
  
  <p>Thank you and sorry about my English!</p>