[Zope] dtml-if question

Casey Duncan cduncan@kaivo.com
Thu, 28 Jun 2001 08:32:08 -0600


Oops Oops wrote:
> 
> Thank you Casey :)
> 
> I got it work.
> here is the code
> 
> <dtml-if expr="objectIds('tbContainer')==[]">
>   <dtml-var tbContainer_addForm>
> </dtml-if>
> 

You could shorten that to:

<dtml-unless expr="objectIds('tbContainer')">
  ...
</dtml-unless>

You can get away with this because an empty list [] is considered a
false value.
-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>