title: Netsuite CASE WHEN expression in custom search is returning “invalid expression”
body: <p>Can someone help me with what is wrong with this expression</p>
  
  <pre><code>case When ({item.locationquantitybackordered} &gt; 0 AND {quantitycommitted} &gt; 0) 
  Then ({item.locationquantitybackordered}+{quantitycommitted})
  Else
  when {item.locationquantitybackordered} &gt; 0
  Then {quantitycommitted} = 0
  Else {item.locationquantitybackordered} = 0
  {item.locationquantitybackordered}+{quantitycommitted}
  End
  End
  </code></pre>