title: If-else in jQuery and incrementing a variable value
body: <p>I want to put an if-else statement in jQuery and also increase a var named <code>count</code>.
  How to do it?</p>
  
  <p>I want to put many statements inside the if- and else-blocks:</p>
  
  <pre><code>var count= 1;
  $('#MultiSelectItemID :selected').each(function(i, selected) {
      {{if count==1}} 
      {
          ......................
          ......................
      }   
      {{else}}
      {          
          .................
          .................
      }
      count++;
  }
  </code></pre>
  
  <p>Is this the right syntax?</p>