title: how to remove from a list from a combo box
body: <p>When trying to write the following code, it comes up with 3 errors. Syntax error on token 'else', insert 'assignmentoperator expression' to complete assignment and that cannot convert from string to boolean. This is for a combo box and when I choose from the combo box, I want to remove the other sites from a list.  'site' is a variable in main and c.site is a parameter in another agent. Can someone explain what to do.</p>
  <pre><code>if ( site ) {
      if ( c.site.equals( &quot;x&quot; ) ) {
          cavernIterator.remove();
          continue;
      }
  }
  else {
      if ( c.site.equals( &quot;y&quot; ) ) {
      cavernIterator.remove();
      continue;
      }
  }
  else {
      if ( c.site.equals( &quot;z&quot; ) ) {
          cavernIterator.remove();
          continue;
          }
      }
  else {
      ( c.site.equals( &quot;a&quot; ) ) {
      cavernIterator.remove();
      continue;
      }
  }
  </code></pre>