title: Difference Between If and Else If?
body: <p>I was wondering why you would use an <code>else if</code> statement, and not multiple <code>if</code> statements? For example, what's the difference between doing this:</p>
  
  <pre><code>if(i == 0) ...
  else if(i == 1) ...
  else if(i == 2) ...
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>if(i == 0) ...
  if(i == 1) ...
  if(i == 2) ...
  </code></pre>
  
  <p>They seem to do the exact same thing.</p>