[Zope] sum up values of two variables

marc lindahl marc@bowery.com
Sun, 06 May 2001 15:04:25 -0400


> From: Marcus Schopen <marcus.schopen@uni-bielefeld.de>
> Date: Sun, 06 May 2001 20:51:30 +0200 (CEST)
> To: zope@zope.org
> Subject: [Zope] sum up values of two variables
> 
> 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())">
> 
>

Close, <dtml-let a="'BASE'+`_.len(hello.getPhysicalPath())`">