<vb:if condition="(THIS_SCRIPT == showthread) AND (($post[postcount] % 5) == 0)"> <div class="attachments" align=center> ... </div> </vb:if>