title: Progress Openedge Where Clause Depending On If Condition
body: <p>I have a combo-box widget. I want to create a WHERE statement that depends of the combo box.</p>
  
  <p>If the value of the combo-box is 0 all customers should be shown. If the value differs from 0 only the customer matching the combo-box value should be shown.</p>
  
  <p><strong>Example :</strong> </p>
  
  <pre><code>Assign CB-Customer.
  For each Customer WHERE /* after that*/
  /*  something like this
  IF CB-CUstomer = 0 THEN ASSIGN Customer.CustNum &gt;= 0 .
  ELSE                    ASSIGN Customer.CustNum = CB-Customer .
  */
  </code></pre>
  
  <p>I've seen a code like this before but I couldn't figure out how it works. </p>