ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
[Zope] HOW TO COUNT VARIABLE WITH
by Mike Doanh Tran other posts by this author
Dec 16 2002 10:32PM messages near this date
Re: [Zope] Exporting files form Zope into C: ? how | Re: [Zope] HOW TO COUNT VARIABLE WITH
How do i count the value of a variable inside of <dtml-in> 
I want to count not just the occurence of the  variable but the
value of that variable also. For Example i have a variable name "weight":

<dtml-in getQuery> 
  <dtml-var count-weight> 
</dtml-in getQuery> 

<dtml-var count-weight>  will give me a total number of occurence for the 
variable weight.  What i want to do is count the value of weight.

if weight=1 then count how many 1 there are
if weight=2 then count how many 2 there are
and so on ....

I've tried to used <dtml-let>  to initial a variable but can't do it.
Does anyone have any suggesstions on how i can do this using DTML?

Thanks for any suggestion,

-- 
Mike

_______________________________________________
Zope maillist  -  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 )
Thread:
Mike Doanh Tran
Tino Wildenhain
Mike Doanh Tran

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved