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>
Last modified: 28/06/2023

Author

Comments

Write a Reply or Comment

Your email address will not be published.