hi,

i am trying to do breakon on tables, i.e omit the cell
content if it is a repeat.

i have a variable breakon which is a interger that
used to check if first number of columns per row is a
repeat. however, the follow code gives unexpected
token error on
"<td>&nbsp;</td>";  
 
what is the valid syntax here?

[% FOREACH row IN rows %]
    [%  cur_fields = row.first( breakon ).join('');
        IF cur_fields == prev_fields;
          FOREACH field in row;
            IF loop.count < breakon
              "<td>&nbsp;</td>";
            ELSE;
              "<td>$field &nbsp;</td>";
            END;
          END;
        ELSE;
          FOREACH field in row;
            "<td>$field &nbsp;</td>";
          END;
        END;
        prev_fields = cur_fields
    %]
[% END %]

thanks!

James.


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to