Re: [SMARTY-GENERAL] If statements
| From: | Andrei Zmievski | Date: | Mon, 01 Apr 2002 18:52:33 +0000 |
| Subject: | Re: [SMARTY-GENERAL] If statements | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3423@lists.php.net to get a copy of this message | ||
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. *