velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Yu" <>
Subject Question about #foreach
Date Sun, 14 Jul 2002 14:38:10 GMT
I've got a question about the #foreach directive. When reading the docs,
it mentioned about the index variable velocityCount within the
directive. My question is what is the name of the variable if there is a
nested #foreach construct:

#foreach ($objList in $objLists)
	#foreach ($obj in $objList)

How do I access the outer loop variable other than setting it explicitly

#foreach ($objList in $objLists)
	#set ($outerIndex = $velocityCount)
	#foreach ($obj in $objList)

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message