Hi Marcus, sure, you can do that. (put _.str() around the numerical return value of len() ) But I dont think this is what you want here. This way the link would contain: <a href="BASE5"> or something. May be, <a href="/<dtml-var expr="_.string.join(hello.getPhysicalPath(),'/')">/"> .. </a> does what you want. HTH Tino Wildenhain --On Sonntag, 6. Mai 2001 20:51 +0200 Marcus Schopen <marcus.schopen@uni-bielefeld.de> wrote:
Hi there,
how do one sum up the values of two variables?
<dtml-let a="_.len(hello.getPhysicalPath())" b="'BASE'"> <dtml-var a> <dtml-var b> </dtml-let>
In other words: the result of _.len(hello.getPhysicalPath()) and the string "BASE" should sum up to one variable, something like
<dtml-let a="'BASE'+_.len(hello.getPhysicalPath())">
Thank you Marcus
_______________________________________________ Zope maillist - Zope@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 )