title: How does nested if/then/elseif work in bash?
body: <p>How does the syntax work in bash? This is my pseudocode for C style if else statements. For instance:</p>
  
  <pre><code>If (condition)
      then
      echo "do this stuff"
  
  elseif (condition)
      echo "do this stuff"
  
  elseif (condition)
      echo "do this stuff"
  
      if(condition)
          then
          echo "this is nested inside"
      else
          echo "this is nested inside"
  
  else
      echo "not nested"
  </code></pre>