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

Dieter Maurer dieter@handshake.de
Fri, 3 Jan 2003 20:31:09 +0100


McDonnell, Larry wrote at 2003-1-3 11:13 -0500:
 > 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">
Try:

  <dtml-in ...>
    <dtml-let check_it=total-disp_qty>
      <dtml-if expr="quantity>check_it"> ... </dtml-if>
    </dtml-let>
    ....


Dieter