Hi, I can't compare a String with a dtml-var variable. <dtml-if expr="REQUEST.has_key('nol') and nol=='<dtml-var id>'"> The following works <dtml-if expr="REQUEST.has_key('nol') and nol=='TheValue'"> Thanks in advance. Erwin
On Tuesday 13 May 2003 10:05 am, n.a.s wrote:
I can't compare a String with a dtml-var variable. <dtml-if expr="REQUEST.has_key('nol') and nol=='<dtml-var id>'">
What did you expect '<dtml-var id>' to mean to *python*? Inside python, just use the variable you want: <dtml-if expr="REQUEST.has_key('nol') and nol==id"> -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
--On Dienstag, 13. Mai 2003 19:05 Uhr +0200 "n.a.s" <naus.office@aon.at> wrote:
Hi,
I can't compare a String with a dtml-var variable.
<dtml-if expr="REQUEST.has_key('nol') and nol=='<dtml-var id>'">
You can not nest DTML. Just access 'id' as variable....nol==id. -aj
participants (3)
-
Andreas Jung -
n.a.s -
Terry Hancock