title: Netsuite CASE WHEN expression in custom search is returning "invalid expression"
body: <p>I am new to writing CASE expressions in NetSuite. I have inserted the following expression in a formula field of a custom search.</p>
  
  <pre><code>CASE WHEN {item.custitem_custid}=05 OR {item.custitem_custid}=12 THEN
       ({item.custitem_margin}/2) 
  ELSE 
       ({item.custitem_margin}/3)
  END
  </code></pre>
  
  <p>and getting "invalid expression as a result. I am attempting to divide the margin field value by 2 if the WHEN case is true and divide by 3 if not true. Anybody have any idea as to what is wrong with my formula?</p>