GML Overview: Repeat

A repeat statement has the form

repeat The statement is repeated the number of times indicated by the rounded value of the expression.

Example The following program creates five balls at random positions.

{   repeat (5) instance_create(random(400),random(400),ball); }