I am attempting to access the value of the current index of the list object dfeNumber, check if it is the first instance of this number, and add a visual break. I have never worked in Freemarker before (primarily the surrounding css), and have spent a bit of time looking through the Apache manual, but I cannot find an example of this kind of usage. I think it would look similar to:
<#assign msaReached=0>
<#list invName as invNames>
<#if ${dfeNumber[invNames_index]} = "900">
<#assign msaReached++>
<#if msaReached=1>
-- do stuff --
</#if>
</#if>
Would anyone be able to point me to an example of the syntax for usage in scenario? Any help would be greatly appreciated.
After some trial and error, I realized I never used this combination:
<#if dfeNumber[invNames_index] = "900">
Which worked.