Re: [SMARTY] Skip a loop iteration

From: Date: Sat, 18 May 2002 04:10:01 +0000
Subject: Re: [SMARTY] Skip a loop iteration
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4296@lists.php.net to get a copy of this message
what about: {section name=x loop=$foo} {if !(some_condition_i_care_about)} do my loop stuff {/if} {/section} ----- Original Message ----- From: "Mitch Vincent" <mitch@unixprogramming.net> To: "Smarty" <smarty-general@lists.php.net> Sent: Friday, May 17, 2002 11:06 PM Subject: [SMARTY] Skip a loop iteration > Is there a way to skip a loop iteration inside a {section} ? > > I tried... > > {$aBrowse[result].index = $aBrowse[result].index_next} > > But that dosesn't do anything. What variable can I increment and/or is there > a function to already do this (if so, I didn't see it in the manual)... > > > Thanks!!! > > -Mitch > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#4296) next »