Kauri Documentation
 PreviousHomeNext 
8.4.11 elementBook Index8.4.13 if

8.4.12 forEach

8.4.12.1 Kinds of loops

8.4.12.1.1 Counting loops
<t:forEach begin="1" end="5" step="2">
  <p>do something</p>
</t:forEach>
8.4.12.1.2 Iterating loops
<t:forEach var="item" in="${mylist}" [begin="1"] [end="5"] [step="2"]>
  <p>do something with ${item}</p>
</t:forEach>

8.4.12.2 Supported list types

You can loop over:

8.4.12.3 Loop status

Inside the forEach, you have access to a variable called loopStatus providing the following fields:

 PreviousHomeNext 
8.4.11 element8.4.13 if