[Zope] String compare

Passin, Tom tpassin@mitretek.org
Wed, 14 May 2003 15:19:28 -0400


[ Dieter Maurer]
 >=20
>  > All you need is the obvious -
>  >=20
>  > <dtml-if expr=3D"REQUEST.has_key('nol') and nol=3D=3Did">
>=20
> Because "id" is sometimes a method and sometimes a string,
> it is better to use:
>=20
>    <dtml-if expr=3D"REQUEST.has_key('nol') and nol=3D=3DgetId()">
>=20

Right, I forgot that again!  Let us hope that the poster does not use
his own "id" properties but is looking for Zope's!

Cheers,

Tom P