title: Testing variable of boolean type in Freemarker
body: <p>The <code>isOffline</code> field in my websetting object is a boolean type. In my Freemarker template, I need to check if it's true of false.</p>
  
  <p>So I did the following, but it does not work</p>
  
  <pre><code>&lt;#if !websetting.isOffline&gt; false &lt;/#if&gt;
  </code></pre>
  
  <p>It looks like Freemarker does not support the Not <code>!</code>. I've also tried <code>&lt;#if websetting.isOffline == false&gt; false &lt;/#if&gt;</code>, but it's not working.</p>