[Zope] dtml-if var1 > var2
Micheál Healy
michael.healy@engitech.ie
Mon, 21 Oct 2002 09:24:13 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0035_01C278E3.9EE7DCE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I want to compare the result of a query (var1) with a variable (var2) as =
follows:
<dtml-if expr=3D"var1>var2">
<font =3D red>
</dtml-if>
Can anyone tell me the correct way of going about this?
TIA,
Miche=E1l Healy
------=_NextPart_000_0035_01C278E3.9EE7DCE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I want to compare the result of a query =
(var1) with=20
a variable (var2) as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-if =
expr=3D"var1>var2"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> <font =3D red></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></dtml-if></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone tell me the correct way of =
going about=20
this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>TIA,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Miche=E1l =
Healy</FONT></DIV></BODY></HTML>
------=_NextPart_000_0035_01C278E3.9EE7DCE0--