I would like to do something like this:
#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>
}
You get the idea. Is this considered "logic", and therefore
its right place should be in Java code?
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]