[Zope] DTML type casting?

davis marques davismarques169@hotmail.com
Wed, 24 Apr 2002 10:48:07 -0700


>So it seems that this should do the job:
>
>       <dtml-if "ProjectID in projectfiles.fileIds()">
>             The directory "&dtml-ProjectID;" exists
>       <dtml-else>
>             "&dtml-ProjectID;" does not exist
>       </dtml-if>

I've tried the above already and it didn't work.  The only way it works 
right now is if I manually enter a string to match (ex. '202006').
ProjectID is the name of a field being pulled from a database query. I'm 
wondering if I somehow have to cast it as a string, or ?

D


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com