[Zope] Can we do arithmetical operation on dtml variables

Tino Wildenhain tino@wildenhain.de
Tue, 07 Aug 2001 15:52:22 +0200


Hi,

Andreas: yep. :-)

Suresh: dont be confused by the "var" part of dtml-var. It could better
read "print" as it is what it does - it makes a string of its contents
and inserts it into the output.

Regards
Tino

--On Dienstag, 7. August 2001 08:28 -0500 Andreas Jung <andreas@andreas-jung.com> wrote:

> Of course you can:
>
> <dtml-var expr="2*a+b">
>
> The stuff inside the double quotes is treated as a Python expression.
> For further help please provide some more details and be a bit more
> informative.
>
> Andreas
> ----- Original Message -----
> From: "Suresh Eddala" <eddala@hotmail.com>
> To: <zope@zope.org>
> Sent: Dienstag, 7. August 2001 07:24
> Subject: [Zope] Can we do arithmetical operation on dtml variables
>
>
>> hi,
>>   can we do any arithmetical operation on  <dtml-var >    variables   in a
>> DTML Document.
>> please help
>>
>> E.suresh Babu
>> ZeOmega Infotech. Pvt Ltd.
>> Bangalore
>> India.
>>
>> _________________________________________________________________
>> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>>
>>
>> _______________________________________________
>> 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 )
>>
>
>
> _______________________________________________
> 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 )