title: How to exit a function in bash
body: <p>How would you exit out of a function if a condition is true without killing the whole script, just return back to before you called the function.</p>
  
  <p>Example</p>
  
  <pre><code># Start script
  Do scripty stuff here
  Ok now lets call FUNCT
  FUNCT
  Here is A to come back to
  
  function FUNCT {
    if [ blah is false ]; then
      exit the function and go up to A
    else
      keep running the function
    fi
  }
  </code></pre>