How to write loop with odd sequence in Apache FreeMarker template?
for example:
<#list seq as n>
...?
${n_index}
</#list>
As result: 1,3,4,5..
Use the Modulus operator.
<#list seq as n>
<#if n % 2 == 1>
<#-- your code here -->
</#if>
</#list>