[Zope] string crisis....

Evan Simpson evan@4-am.com
Wed, 08 Sep 1999 10:02:19 -0500


Arnaud Lecat wrote:

> How come that a simple test <dtml-if "mydocid==id">blah blah</dtml-if>
> isn't true
> whereas the values seem to be the same (mydocid and id seems to contain
> the same
> string)....

One or the other (or both) may not be strings, but rather
methods/functions which *return* a string.  The cases are
indistinguishable with <dtml-var v> and <dtml-var "_['v']">, but require
<dtml-if "mydocid==id()"> if 'id' is a function.