*beginrepeat()

Repeats execution of a block of code a specified number of times.

Syntax

*beginrepeat (expression)

Type

HyperMesh Card Previewer Command

Inputs

expression
A relational expression or an attribute.

Example

*beginrepeat($ARRAY_LENGTH)
 *repeatwrap(80)
 *repeatcounter(1)
 *menufield(Array,integer,$ARRAY_ATTRIBUTE,10)
*endrepeat()

The *repeatwrap() command can be used to automatically begin new lines. If used, it must be the first command following the *beginrepeat().

The *repeatcounter() command can be used to store the current repeat value in a counter. If no *repeatcounter() command is specified, the repeat value is not stored in any counter.

All *menufield() commands that reference attributes can only reference the following types in a *beginrepeat() block: arrayofinteger, arrayofreal, arrayofstring.

The *beginrepeat() command must be accompanied by a *endrepeat() command.