title: How to use the return true/false in js
body: <p>I have a function, for example check navigator params, like that :</p>
  
  <pre><code>function paramsDevice() { 
      if ( navigator.userAgent. etc ... ) {
          return true;
      } else {
          return false;
      }
  }
  </code></pre>
  
  <p>how to use the return, in a other part of js code ?</p>
  
  <pre><code>if (paramsDevice == false)
  </code></pre>
  
  <p>not working and i have no error</p>