#set($shipCounter = 0)
#foreach( $shipment in $shipments )
#set($shipCounter = $shipCounter + 1)
<table>
Start....Table structure for each shipment....
<b>Shipment #: $!shipCounter</b>
</table>
#end
-----Original Message-----
From: Robert Reil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 10:41 AM
To: Velocity Users List
Subject: Basic Programming Logic Assistance Needed
Sorry, I am NEW to programming. I have a simple need that I don't know
where to start with.
What approach to outputting a number based on how many times it has been
looped?
Code:
#foreach( $shipment in $shipments )
<table>
Start....Table structure for each shipment....
<b>Shipment #:</b> (I need a looped incremented shipment number to show
up here in starting with 1, then 2, etc.) End....Table structure for
each shipment....
</table>
Example:
**********
Table Start
Shipment #: 1
Table End
Table Start
Shipment #: 2
Table End
**********
Robert P. Reil
Managing Director,
Motorcyclecarbs.com, Inc.
4292 Country Garden Walk NW
Kennesaw, Ga. 30152
Office 770-974-8851
Fax 770-974-8852
www.motorcyclecarbs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]