Skip to content

Instantly share code, notes, and snippets.

@jessecookedesign
Created November 12, 2020 16:59
<#assign myList = ["A", "B", "C", "D", "E"]>
<#assign mySize = myList?size - 1>
<#list 0..mySize as x>
<#if x % 2 == 0 && x == mySize>
<#else>
${myList[x]}
</#if>
</#list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment