Wednesday, May 9, 2012

How to Check for null value in FreeMarker Template

Here it is:

<#if variable??>
    not null
<#else>
    it is null or is missing
</#if>

No comments:

Post a Comment