Re: Limiting the section loop
| From: | Andrei Zmievski | Date: | Tue, 26 Jun 2001 16:54:45 +0000 |
| Subject: | Re: Limiting the section loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-992@lists.php.net to get a copy of this message | ||
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.
-Andrei
* Only 19,999 lines of C++ to my next ski trip... *