[Zope] Variables...

Phil Harris phil.harris@zope.co.uk
Wed, 28 Mar 2001 15:58:33 +0100


How about (untested, but should work):


<table>
<dtml-in "especialidade.objectValues()">
  <dtml-if sequence-odd>  
    <tr bgcolor="#EEEEEE">
  <dtml-else>
    <tr bgcolor="#007CC3">
  </dtml-if>
</dtml-in>
</table>

You could also use sequence-even instead.

hth

Phil

----- Original Message ----- 
From: "After Dark" <afterz@zipmail.com>
To: <zope@zope.org>
Sent: Wednesday, March 28, 2001 3:46 PM
Subject: [Zope] Variables...


> Hello... 
> I am trying to assign a value to a variable, but I`m having
> problems with it.
> I just want to make a table with diferent colors... like the
> example:
> 
> <!--#let cor="'FALSE'"--><!--#/let-->
> <table>
> <dtml-in "especialidade.objectValues()">
>   <dtml-if "cor == 'FALSE'">  
>     <!--#let cor="'TRUE'"--><!--#/let-->
>     <tr bgcolor="#EEEEEE">
>   <dtml-else>
>     <!--#let cor="'FALSE'"--><!--#/let-->
>     <tr bgcolor="#007CC3">
>   </dtml-if>
> </dtml-in>
> </table>
> 
> How can I make this work?
> 
> Thanks.
> ________________________________________________
> Don't E-Mail, ZipMail! http://www.zipmail.com/
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )