Re: #EVEN

From: Date: Tue, 06 Mar 2001 15:32:52 +0000
Subject: Re: #EVEN
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-318@lists.php.net to get a copy of this message
> It depends on what you want to test for 'evenness'. If current section > iteration, then try: > > {if %mysection.index% is even} > even > {else} > odd > {/if} Most excellent, this is what I wanted! Btw, not sure how I made it to this PDF but it may want to be adjusted : http://www.phpinsider.com/php/PHP_Template_Engine.pdf Anyway, it all makes sense now, index and rownum are staring me in the face! Regards, Philip

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