"Diethelm Guallar, Gonzalo" wrote:

> #set cnt = 0
> #foreach $book in $books
> {
> #if cnt == 0
> <set color to red>
> #else
> #if cnt == 1
> <set color to green>
> #else
> #if cnt == 2
> <set color to blue>
> 
> #set cnt = cnt + 1
> #if cnt > 2
> #set cnt = 0
> 
> <render row in a table>
> }

check the util.webmacro.WebMacroFormatter class
it has something called Alternator, that fits 
your needs perfectly.

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to