title: C# difference between else if and if
body: <p>What is the difference between if and else if in C#? For example if i write </p>
  
  <pre><code>if (x==5){
      do something
  }
  </code></pre>
  
  <p>And </p>
  
  <pre><code>else if (x==5){
      do something
  }
  </code></pre>
  
  <p>Are they totally same… so ? What is the difference?</p>