[Zope] A very newbie question

Phil Harris phil.harris@zope.co.uk
Mon, 14 Aug 2000 03:02:31 +0100


oops,

Should hae been:

<dtml-if "_.divmod(_.int(_['sequence-item']),3)[1]==0">

hth

Phil
phil.harris@zope.co.uk

----- Original Message ----- 
From: "Indra Gunawan" <neo@bdg.centrin.net.id>
To: <zope@zope.org>
Sent: Monday, August 14, 2000 2:38 AM
Subject: [Zope] A very newbie question


> I need to know the value of (sequence-index mod 3)=0
> in something like
> <dtml-if "sequence-index mod 3)=0">
> how do I use the mod function correctly? since the divmod function is
> actualy returning 2 pair of value.
> Thanks guys.
> 
> -IGUN-
> ICQ:1474584
> 
> 
> _______________________________________________
> 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 )