title: If condition is true show button
body: <p>I'm trying to make a button appear if condition "isauthenticated" is "true".</p>
  
  <p>used <a href="https://stackoverflow.com/questions/8317958/show-div-based-on-if-statement">this</a> as a reference, but not sure what's wrong with my code.</p>
  
  <pre><code>&lt;button id="authentic" type="hidden"&gt;test&lt;/button&gt;
  
  &lt;script&gt;
      window.onload = function() { 
          var logedIn = ('{{isauthenticated}}')
  
          if(logedIn == "true") {
              document.getElementById('authentic').style.display = 'block'; 
          } else {
              document.getElementById('authentic').style.display = 'none';
          }
      }
  &lt;/script&gt;
  </code></pre>