The below doesn’t appear to work. The problem seems to be with the conditional. Splitting it into two separate conditionals yields the same results. Am I doing something wrong - is there perhaps a better way?
<!–Add a closing div tag every second entry, in order to close the row–> {switch='|</div>'}
<!–If the last row only has one entry, add a closing div tag so that the row is closed–> {if count == total_results AND “{switch='|</div>'}” != ‘</div>’} </div> {/if}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.