[Zope] Checking sequence-index using dtml-if

Jeff Hotz jeff@hotz.net
Sun, 18 Feb 2001 21:57:27 -0600


I only want to operate on the first 3 records returned in the 
ZSQL_select_images.

I thought that a dtml-if test would do it based on the dtml-var 
sequence-index but I'm not having any luck.

Any suggestions on either my logic or the implementation of it?

Any help you can offer will be greatly appreciated.  Thanks.

<dtml-in ZSQL_select_images>
   <dtml-if expr="'<dtml-var sequence-index>' < 3">
     <TR>
       <TD ALIGN="CENTER">
         <img src= "<dtml-var image_path_prop><dtml-var FILENAME>">
         <BR>
         <FONT SIZE="4" COLOR=<dtml-var caption_color_prop>>
         <B><dtml-var CAPTION></B><BR><BR><BR>
         </FONT>
       </TD>
     </TR>
   </dtml-if>
</dtml-in>
jeff@hotz.net
www.hotz.net