[Zope] dtml-in

Schmidt, Allen J. aschmidt@nv.cc.va.us
Mon, 11 Feb 2002 14:00:28 -0500


<dtml-in ...>
  found records and here they are. <dtml-var arecord>
<dtml-else>
  no records found
</dtml-in>

OR...if you are really just checking...

<dtml-if ...>
  found records
<dtml-else>
  no records found
</dtml-if>



Finally, one I could answer!

Allen

-----Original Message-----
From: D. Rick Anderson [mailto:ruger@comnett.net]
Sent: Monday, February 11, 2002 1:56 PM
To: zope@zope.org
Subject: [Zope] dtml-in


How do I detect if there are no results from a <dtml-in>? I've tried 
everything from:
<dtml-in ...>
<dtml-unless sequence-length>
No records found.
</dtml-unless>
</dtml-in>

to:

<dtml-in ...>
<dtml-if sequence-end>
    <dtml-if sequence-start>
        No records found.
    </dtml-if>
</dtml-if>

and all kinds of other variations .. I can't get it to return anything if 
there are no results.

TIA

Rick





_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )