title: for Loop with if-else statement
body: <p>I would like to ask some logic question here. </p>
  
  <p>Let say I have a for loop in javascript to remove the whole items:-</p>
  
  <pre><code>var i = 0;
  for (i=0;i&lt;=itemsAll;i++) {
      removeItem(i);
  }
  </code></pre>
  
  <p>I do not want to remove item when  i = current = e.g. 2 or 3.</p>
  
  <p>how do I or where do I add a if-else statement in this current for loop?</p>
  
  <p>Please help, anyone?</p>