title: How to use the ternary operator to increment a value
body: <p>I was hoping someone can point out where I am going wrong? I haven't had much experience with using the Ternary operator but feel that there is good reason to use it here as it reduces code length. </p>
  
  <p>However, I am getting the above error. Can anyone see where I am going wrong?</p>
  
  <pre><code>Colour.R &lt;= 255 ? Colour.R+=10 : Colour.R+=11;
  </code></pre>
  
  <p>The compiler returns</p>
  
  <pre>
  Only assignment, call, increment, decrement, and new object expressions can be used as a statement
  </pre>
  
  <p>Where Colour represents a Color vector.</p>