I am using Smarty 2 and wondered if there is a better/tidier way to use assign
to set the value of evenRow
on one line, rather than the 5 lines below.
{if $evenRow == 'on'}
{assign var='evenRow' value='off'}
{else}
{assign var='evenRow' value='on'}
{/if}
Considering Smarty can be quite closely aligned with PHP in places i'm surprised this isn't easily found online, as doing something like this in PHP would be straightforward.