Keil Logo

REPEAT Function

The REPEAT MPL function expands its balanced-text argument a specified number of times. The syntax for the REPEAT function is:

%REPEAT (expression) (balanced-text)

The REPEAT function expands balanced-text the number of times specified by expression. The expression is evaluated only once when the macro is first called.

Source Text

%REPEAT (5)
( -enter any key to shut down-
)

%REPEAT (5) (+%REPEAT (9) (-))+

Output Text

 -enter any key to shut down-
 -enter any key to shut down-
 -enter any key to shut down-
 -enter any key to shut down-
 -enter any key to shut down-
 +---------+---------+---------+---------+---------+

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.