If conditional test for last item in for loop
Created originally on Bitbucket by jasplin (John Asplin)
Hi,
I've created an odt template that has a for loop covering the whole page so that a page is created for every element of a list in the json data. At the moment a line break is included just before the closing /for hyperlink so that this break is replicated for each row.
Unfortunately this leads to an empty page at the end of each rendered document.
What I would love to do is put the line break inside an /if section and test if is the last entry in a list - this way the line break can be stopped for the last entry.
Something like for="item in items"
if="item.last ..... something "
/if /for
Is there some way to do this now or is this something that requires a new feature?
Thanks, John