<p>FreeMarker templates support an if-statement with the following syntax</p>

<pre><code>&lt;#if hot&gt; 
  It's hot.
&lt;/#if&gt;  
</code></pre>

<p>I've looked in the documentation and can't find any support for an if-else statement. Of course, I could achieve the same result with:</p>

<pre><code>&lt;#if hot&gt; 
  It's hot.
&lt;/#if&gt;  
&lt;#if !hot&gt; 
  It's not hot.
&lt;/#if&gt;  
</code></pre>

<p>Is there support for if-else in FreeMarker?</p>

Yes, you can write:
```
```
<#if hot>
it's hot
<#else>
it's not
</#if>
```
```
And if you're doing lots of freemarker, I really can recommend IntelliJ IDEA 8, its freemarker support really helps...