Re: [SMARTY-GENERAL] If statements
| From: | Brad Atkins | Date: | Mon, 01 Apr 2002 18:54:59 +0000 |
| Subject: | Re: [SMARTY-GENERAL] If statements | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3424@lists.php.net to get a copy of this message | ||
Excellent.
That worked great! You guys rule!!
Thanks,
Brad Atkins
Manager, Technical Development
Sales: 1-877-973-2278
Support: 1-877-973-4968
Email: brad@youreshop.com
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "Brad Atkins" <brad@youreshop.com>
Cc: <smarty-general@lists.php.net>
Sent: Monday, April 01, 2002 1:52 PM
Subject: Re: [SMARTY-GENERAL] If statements
> On Mon, 01 Apr 2002, Brad Atkins wrote:
> > Is it any different when using a foreach?
> >
> > We've changed the left/right delimiters to be a square bracket.
> >
> > [foreach item=SECTION from=$SECTIONS]
> >
> > [if $SECTIONS[SECTION].IS_SECTION eq "Y"]
> >
> > This is a section
> > [/if]
> > [/foreach]
>
> Yes it is different with a foreach.
>
> [foreach item=SECTION from=$SECTIONS]
>
> [if $SECTION.IS_SECTION eq 'Y']
>
> [/if]
>
> [/foreach]
>
> Does this not work for you?
>
> -Andrei
> * The cost of living hasn't affected its popularity. *
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>