RE: #EVEN
| From: | Maciek Uhlig | Date: | Tue, 06 Mar 2001 07:36:49 +0000 |
| Subject: | RE: #EVEN | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-316@lists.php.net to get a copy of this message | ||
If you want to use config file variable, use #EVEN# .
Maciek
> -----Original Message-----
> From: Philip Olson [mailto:philip@cornado.com]
> Sent: Tuesday, March 06, 2001 8:30 AM
> To: smarty@lists.ispi.net
> Subject: [smarty] #EVEN
>
>
> Hi. I'm very new to Smarty and am having an annoying problem. I do the
> following within a looped section :
>
> {if #EVEN}
> a
> {else}
> b
> {/if}
>
> Yet I get a parse error because within the compiled template it turns the
> above into this :
>
> <?php if (#EVEN): ?>
> a
> <?php else: ?>
> b
> <?php endif; ?>
>
> This could be something simple and silly yet I've tried a few settings to
> no avail. I essentially copied this use of #EVEN from Smarty real world
> example. I can do "normal" if statements just fine. Am I to use {if
> count is even} instead? If so, what is count? Using 1.3.0 and in process
> of reading DOCS.
>
> Regards,
>
> Philip
>
>
> ---
> You are currently subscribed to smarty as: muhlig@us.edu.pl
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>
>