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

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


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