13 May
2003
13 May
'03
5:16 p.m.
[n.a.s ]
I can't compare a String with a dtml-var variable.
<dtml-if expr="REQUEST.has_key('nol') and nol=='<dtml-var id>'">
Of course you can do a compare, but not with invalid syntax. The <dtml...> tag just sets up the environment for accessing objects, and there is no need to try to stick another <dtml> tag inside one (even if it were allowed). All you need is the obvious - <dtml-if expr="REQUEST.has_key('nol') and nol==id"> Furthermore, Python uses short-circuit evaluation, so the expression will not fail if there is no key for nol - very helpful. Cheers, Tom P