[Zope] Beginner DTML question: dereferencing a variable

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Tue, 6 Apr 1999 11:11:00 -0400 (EDT)


On Tue, 6 Apr 1999, Michel Pelletier wrote:
> 
> <!--#with _.namespace(folders=objectIds('Folder'))-->
>   <!--#if "theusername not in folders"-->
> 	No folder named <!--#var theusername-->
>   <!--#else-->
> 	Go to folder <a href="<!--#var theusername-->"><!--#var
> theusername-->
>   <!--#/if-->
> <!--#/with-->      
> 

Is the setting of a variable needed?

<!--# unless "theusername in objectIds('Folder')"-->
or
<!--# if "theusername not in objectIds('Folder')"-->

will work too.


Pavlos