section problem
| From: | Robin Ericsson | Date: | Wed, 19 Feb 2003 14:41:10 +0000 |
| Subject: | section problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7879@lists.php.net to get a copy of this message | ||
Hi,
I have to following
$smarty->assign("selSort", array(1 => 1, 2 => 3));
{section name=sort start=1 loop=5}
{/section}
Inside the loop I have
{if $selSort[sort] == 3} bla {/if}
but I also need to do this, which I'm not really into how I should be
doing:
if {!$selSort[sort+1]} blaaaah {/if}
sort+1 renders me an unknown token error.
best regards
Robin