SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the ?? test operator:
??
This checks if the attribute of the object is not null:
<#if object.attribute??></#if>
This checks if object or attribute is not null:
<#if (object.attribute)??></#if>
Source: FreeMarker Manual