Re: Limiting the section loop

From: Date: Tue, 26 Jun 2001 16:56:10 +0000
Subject: Re: Limiting the section loop
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-993@lists.php.net to get a copy of this message
Andrei Zmievski wrote: > > On Tue, 26 Jun 2001, Monte Ohrt wrote: > > Andrei Zmievski wrote: > > > > > > On Tue, 26 Jun 2001, Monte Ohrt wrote: > > > > Same behavior as show=false. I could see if you are setting max with a > > > > variable, you would want 0 to not loop. > > > > > > > > > > > > > > {section loop=$input max=-4} > > > > > {/section} > > > > > > > > syntax error, max must be >= 0. > > > > > > And what if you are setting max with a variable? > > > > Still a syntax error. Would it ever make sense to have a negative max > > value? > > Well, you can have a negative loop value right now, it just works the > same way as 0. > what about max=5.51

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