title: Which is more appropriate way of programmming
body: <p>If a variable can take n values should we check for the validity of the values or assume that if all the n-i checks fail it would be the nth value.</p>
  
  <p>For example if we have a variable that stores gender as M or F. Use this:</p>
  
  <pre><code>If gender = "M"
     do male_processing
  else
     do female_processing
  endif
  </code></pre>
  
  <p>Or this:</p>
  
  <pre><code>If gender = "M"
    do male_processing
  else
    if gender = "F"
       do female_processing
    else
       print "Something has gone wrong Gender has a value " Gender
    endif
  
  endif
  </code></pre>