12 May
2004
12 May
'04
5:27 p.m.
Jianping Zhu wrote:
I in a file i have code like this: <dtml-if "teach=='y'"> <dtml-let t="'Yes'"></dtml-let> <dtml-else> <dtml-let t="'No'"></dtml-let> </dtml-if>
I want to access varible t outside this if loop how can i declear it global to the entire file?
Use the REQUEST-Object to store "global" variables for current page-request: <dtml-if "teach=='y'"> <dtml-call "REQUEST.set('t','Yes')"> <dtml-else> <dtml-call "REQUEST.set('t','No')"> </dtml-if> Cheers, Maik