title: Crystal Reports Conditional Rounding
body: <p>I just started learning Crystal Reports, and am using the below formatting formula:</p>
  
  <pre><code>local numberVar result;
  if GroupName ({SCD_CUSTOMER.NAME}) = "32 Bar Blues, LLC" Then
  (
      result = round({PTS_PRI_ORDER_PRICING.SELLING_PRICE}, 2);
      result;
  )
  Else defaultAttribute
  </code></pre>
  
  <p>For a while I didn't have the Else statement there, and I couldn't understand why the report would round ALL selling_price values, rather than just those for 32 Bar Blues, LLC. </p>
  
  <p>Sticking the Else in fixed my issue, but I still don't understand it. Why is the round being executed when it should never even be looked at for scd_customer.name != 32 Bar Blues, LLC? What am I missing here?</p>