In my ftl file, I'm writing:
<#list myDataList as myData>
<p>
    <#if myData.action == 0>Added by
    <#else>Removed from
    </#if>
</p>
</#list>
In java code, action is of type Integer.
I've also tried myData.action == "0".
I can see action == 0 while debugging.
Error I'm getting:
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> myData.action  [in template "email_template.ftl" at line 79, column 50]
 
     
    