title: Only assignment call increment decrement can be used as a statement
body: <p>The following line of code is causing the following "Only assignment call increment decrement can be used as a statement."</p>
  
  <pre><code>iRowsEffected == 0 ? trans.Rollback() : trans.Commit();
  </code></pre>
  
  <p>I have used the if else shorthand many times but have never received this error.</p>