Thursday 12 June 2003 12:13:03 am
You can build a if-then-else with template functions:
{section show=eq($val, 1)}
do something
{section-else}
do something else {/section} if you want to test further you can either use a switch statement or embed further sections:
{section show=eq($val, 1)}
do something {section-else}
{section show=eq($val, 2)}
do more
{section-else}
do even more {/section} {/section} you dont need to resort to php for just this type of logic. paul
|