The <while> command

The <while> command is exactly like the <if> command except that it repeatedly processes its contents so long as the associated condition evaluates to true. If the condition is initially false, the contents are not processed at all.

For example, to create twenty blank table rows:

<set var="Count" value="0"/>
<while var="Count" test="less" target="20">
   <set var="Count" value="{Count}+1"/>

[Warning] Warning

Make sure you define your content so that the condition does eventually become false, otherwise you'll end up in an infinite loop!