!--a11y-->
Purpose
Repeats a substitution a given number of times.
Syntax
repeat
expression times statement endDescription
If a certain area in the HTML page is to be repeated several times, and the loop index is not involved, this can be done simply by using this statement.
Examples
`repeat 10 * c times` <td> `end`
Both the
repeat and for statements allow you to perform repeated substitution in HTML Business expressions. They force the Internet Transaction Server (ITS) to perform a substitution multiple times. These statements allow you to include R/3 step loops in HTML pages and structure them as you like.The following table shows some example uses:
repeat |
for |
`repeat 10 times` |
`for(i=1;i<=10;i++)` |
`repeat with i in FIELD_OP` |
(No equivalent for statement.) |
`repeat with i from 1 to FIELD_OP.dim` |
`for(i=1; i<=FIELD_OP.dim; i++)` |
For further information on the
repeat statement, see: repeat with <reg> in <field> repeat with <reg> from <expn> to <expn>For information on the
for statement, see: for Statement