[Zope] How to use the total-nnn to compare to another total

McDonnell, Larry lmcdonnell@protonenergy.com
Fri, 3 Jan 2003 11:13:29 -0500


Hi,

Happy New Year everyone! I know what is listed below does not work. I am
trying to compare the individual quantities to make sure it does not exceed
the total quantity. The total-nnn get me my sub-total but I can not figure
out a way to save the value for comparsion. Any pointer/examples would be
great, Thanks.

<dtml-call "REQUEST.set('nc_report_no', '1014')">
<dtml-call "REQUEST.set('quantity', '10')">

<dtml-in nonc_disposition_search>
<dtml-set check_it=<dtml-var total-disp_qty>>
<dtml-if expr="quantity>check_it">
Not today
<dtml-else>
Ok
</dtml-if>
</dtml-in>

Larry McDonnell

Proton Energy Systems
10 Technology Drive
Wallingford, CT 06492
(203) 678-2181
Email:lmcdonnell@protonenergy.com
www.protonenergy.com