21 Oct
2002
21 Oct
'02
1:26 p.m.
That should do it. If you are comparing integers, it might not be a bad idea to make sure they are integers. OTOH, it could just be a waste of time for your application. Stuff that lives in REQUEST comes to you as strings. <dtml-if expr="int(REQUEST.var1) > int(REQUEST.var2)"> <span style="color: red; background-color: transparent;">This, that and the other...</span> </dtml-if> Troy Micheál Healy wrote:
Hi all,
I want to compare the result of a query (var1) with a variable (var2) as follows:
<dtml-if expr="var1>var2"> <font = red> </dtml-if>
Can anyone tell me the correct way of going about this?
TIA,
Micheál Healy