Hot answers tagged

1

You can include simple mathematical operators within EE conditionals so you could use something like this: {exp:query sql="SELECT states FROM states"} {states} {if count < (total_results - 2)}, {if:elseif count == (total_results - 1)} and {/if} {/exp:query} I have spread out the conditional to make it easier to read, but you ...


Only top voted, non community-wiki answers of a minimum length are eligible