title: Using function's return value in if statement
body: <p>Hopefully a quick question here.</p>
  
  <p>Can you use a function's returned value in a if statement? I.e.</p>
  
  <pre><code>function queryThis(request) {
  
    return false;
  
  }
  
  if(queryThis('foo') != false) { doThat(); }
  </code></pre>
  
  <p>Very simple and obvious I'm sure, but I'm running into a number of problems with syntax errors and I can't identify the problem.</p>