title: if (function() === false){ do this}
body: <p>i'm trying to solve this issue, i'm relatively new to javascript, so:</p>
  
  <p>function termos() gives a true or false result;</p>
  
  <p>probably the solution to this is simple, but can't get to it. Is it possible to do this? i wrote this code just to exemplify my doubt </p>
  
  <pre><code>function termos() {
    if($('.terms').is(':checked')) {
      return true;
    } else {
      return false;
    }
  }
  </code></pre>
  
  <p>can i use </p>
  
  <pre><code>} else if(termos() === false) {
    alert('please agree with terms');
    return false;
  }
  </code></pre>
  
  <p>This doesn't work</p>