<vb:each from="arrayname" key="keyid" value="data"> <vb:if condition="$loops>=4"> Some HTML CODE <vb:else /> Some Other HTML CODE </vb:if> </vb:each>