[Zope] <dtml-let> in and outside <dtml-in>

Edwin Martin e.j.martin@chello.nl
Sat, 17 Mar 2001 22:31:06 +0100


Hello,

I want to set a variable inside a <dtml-in>-loop and want to
use it outside the <dtml-in>.

This is probably a FAQ, but I couldn't find the answer.

<dtml-let> wouldn't work and something like
<dtml-call "REQUEST.set('done',1)"> doesn't work either.

I want to have something like this working (simplified):

<if stage=3>
   <dtml-in...>
     <dtml-if...>
       <dtml-var bla>
       <dtml-let done=1>
     </dtml-if>
   </dtml-in>
</dtml-if>

<dtml-if not done or stage=2>
...
</dtml-if>

Bye,
Edwin Martin.