<repeat> repeat a block
- name
- repeat
- xml namespace
- http://moyaproject.com
Repeat a block a set number of times, or indefinitely. You can leave a repeat loop prematurely with the <break> tag.
Note Be careful not to create infinite loops with this tag
Example
<repeat times="5">
<echo>Candyman</echo>
</repeat>
attributes
name |
purpose |
type |
required? |
default |
choices |
times |
Number of times to repeat (default is infinite) |
expression |
No |
None |
|
inherited attributes
name |
purpose |
type |
required? |
default |
choices |
if |
Conditional expression |
expression |
No |
yes |
|