#EVEN

From: Date: Tue, 06 Mar 2001 07:29:44 +0000
Subject: #EVEN
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-315@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#315) next »