Determining Repeater Last Item
Hi I am hoping someone can help me with a simple question. I am new to Perch and have been following this example for repeaters and creating rows of images (https://grabaperch.com/blog/archive/adding-markup-to-some-items-in-a-multiple-item-region). What I have noticed is that if the number of items is 3, or 6 or 9 etc, then the example in the blog will add an empty div / row after the row of images. So, essentially to prevent this, I think we need to test if the count=3 item is the last item. Pseudo code might look something like the following...
<perch:every count="3" and not last item> </div> <div class=“row”> </perch:every>
Does anyone have any thoughts about if this is possible? Thanks James