Use the operator ?? at the end of your <#if> statement.
This example shows how to handle null values ββfor two lists in a Freemaker template.
List of cars: <#if cars??> <#list cars as car>${car.owner};</#list> </#if> List of motocycles: <#if motocycles??> <#list motocycles as motocycle>${motocycle.owner};</#list> </#if>
Daniel PernΓk Aug 27 '15 at 12:54 2015-08-27 12:54
source share