Re: Limiting the section loop
| From: | Monte Ohrt | Date: | Tue, 26 Jun 2001 16:52:25 +0000 |
| Subject: | Re: Limiting the section loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-991@lists.php.net to get a copy of this message | ||
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?