[Zope-CMF] Easy question: how to define a changeable variable

Jens Hauser Jens Hauser" <hauser@jam-gmbh.de
Fri, 20 Sep 2002 13:34:05 +0200


Thanks! I knew it would be easy. B-)


On Fri, 20 Sep 2002 13:17:51 +0100, Andreas Jung wrote:

>Try <dtml-call "REQUEST.set('myvariable','1')">
>
>-aj
>
>--On Freitag, 20. September 2002 13:11 +0200 Jens Hauser 
><hauser@jam-gmbh.de> wrote:
>
>> Hi all,
>>
>> I know it sounds stupid:
>>
>> How can I define a variable, assign a value to it and change it with it's
>> definition area? I need this for a dtml method or dtml document.
>>
>> Example:
>>
>>###################
>> <? myvariable="1">
>>
>> <dtml-in objectvalues ...>
>>
>>   <dtml-if expr="myvariable='1'">
>>     ...
>>     <? myvariable = '2'>
>>
>>   <dtml-else>
>>     ...
>>     <? myvariable = '1'>
>>   </dtml-if>
>>
>> </dtml-in>
>>
>> <? variable no longer defined>
>>
>>################
>>
>> Sequence odd and even is of no use for me ...
>>
>> Please, don't hurt me for that question. I really searched docs, list ...
>> over and over.
>>
>> Best regards,
>> Jens
>>
>>
>>
>> _______________________________________________
>> Zope-CMF maillist  -  Zope-CMF@zope.org
>> http://lists.zope.org/mailman/listinfo/zope-cmf
>>
>> See http://collector.zope.org/CMF for bug reports and feature requests
>
>