Hi,
Shoukld be so simple but can anyone spot what i'm doing wrong here using $Pos. On the 3rd element i want to apply the class of "last" (which basically gives the Li a right margin of 0).
<ul class="gallery">
<% control LatestGalleryItems %>
<% if $Pos==3 %>
<li class="last">
<% else %>
<li>
<% end_if %>
<a href="$Large.Link">$Thumbnail</a><p>$Caption</p>
</li>
<% end_control %>
</ul>
Many thanks