[Zope] How to assing a string value to a variable in DTML?

Daniel Rusch drusch@globalcrossing.com
Thu, 17 Aug 2000 09:48:22 -0500


<dtml-let a="'aaaaa'"
b="'bbbbb'">
<dtml-var "a+b">
</dtml-let>

Notice the quotes. See the How to on Let tags:
http://www.zope.org/Members/michel/HowTos/LetTagHow-To

DR


"iap_y2fun.com" wrote:

> Forgive me for this stupid question:
> How to assing a string value to a variable in DTML?
> for example:
>
> <dtml-let a='aaaaa'
> b='bbbbb'>
> <dtml-var "a+b">
> </dtml-let>
>
> it causes error, not what I expected:
> given a="aaaa", b="bbbb", and eval a+b to "aaaabbbb"
>
> Thanks
>
> iap
>
> _______________________________________________
> 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 )