[SMARTY] cycling

D_C <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
is there a way to use a smarty variable as a cycle parameter? tried:

{cycle values=0,stepX assign='posX' }
{cycle values=0,$stepX assign='posX' }
{cycle values=0,`$stepX` assign='posX' }
{cycle values='0,`$stepX`' assign='posX' }

but i get the values 0 and "stepX" as a string...

otherwise I guess i can do this but it seems verbose:

{cycle values='0,1' assign='posX' }
{assign var=posX value=$posX*$stepX}

thanks in advance!

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.