<mvt:if expr="(POS1 MOD 4) EQ 1"> <div class="first-item"> // This will be executed of every 4th product starting at 1: 1,5,9,13 etc. </div> <mvt:else> // This code will be executed when the above condition is NOT met </mvt:if>