You'd need to know the loop index variable (see the 'name=' part of .
For example, if the index was "product" then you would use the following code:
{if %product.last% ne "true"}
... code ...
{/if}
I'm getting the info from this page:
http://smarty.php.net/manual/en/section.property.last.php
I hope this helps!