[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    Re: [SMARTY] Sections with negative step param
From:       Gabriel Birke <birke () kontor4 ! de>
Date:       2003-05-16 11:20:00
[Download RAW message or body]

Almost, it's {section name=test  loop=6 max=3 step=-1} to get my 
desired result.

Anyway, thank you very much!

Am Freitag, 16.05.03 um 13:16 Uhr schrieb Jason Sweat:

> Not tested, but I think you need:
> {section name=test  loop=5 max=3 step=-1}
>
> ----- Original Message -----
> From: "Gabriel Birke" <birke@kontor4.de>
> To: <smarty-general@lists.php.net>
> Sent: Friday, May 16, 2003 6:11 AM
> Subject: [SMARTY] Sections with negative step param
>
>
>> Hello!
>>
>> I've got the following section:
>>
>> {section name=test start=5 loop=3 step=-1}
>> section={$smarty.section.test.index};<br>
>> {/section}
>>
>> and i get the following output:
>>
>> section=2;
>> section=1;
>> section=0;
>>
>> I think this is strange because I expected the following output:
>>
>> section=5;
>> section=4;
>> section=3;
>>
>> Can anyone explain to me where my error of thought is? Is there
>> anything I can do to produce the desired output except for {math}
>> inside the section?
>>
>> With best regards
>>
>> Gabriel Birke


-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic