title: Two separate if clauses or one single if else
body: <p>Stupid question, is it a good practice to use two separate if clauses or one single if with if else clause, eg:</p>
  
  <pre><code>if (a = 1)
  (dosomething)
  if (a=2)
  (do other thing)
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>if (a=1)
  (do something)
  else if (a=2)
  (do other thing)
  </code></pre>
  
  <p>Those two if conditions ARE NOT true the same time. Variable a is used as comparator and not changed at all.</p>
  
  <p>The two ways work as expected and nothing programmatically wrong with it, I am just asking what is a good practice and recommended?</p>