title: Is there a sort of "conditional return"
body: <p>I'm writing a function that calls other functions until one of them returns a "not false" value. This value should be returned by the main function. 
  What is the shortest manner of rewriting this function so it doesn't call the other functions twice, and - if possible - avoiding using an extra variable? </p>
  
  <pre class="lang-php prettyprint-override"><code>function doSomething(){
      if (tryA()) return tryA();
      if (tryB()) return tryB();
      if (tryC()) return tryC();
      return screwIt();
  }
  </code></pre>