The "Repeat" Statement

The repeat statement repeats the code given to it the number of times that you tell it to repeat.
repeat(expression)
{
// do whatever
}
For example, the following adds 1 to the variable variable 10 times, therefore incrementing its variable by 10 overall.
repeat(10)
{
variable += 1;
// You'd be better off using a "for" statement for this.
}
You don't have to use numbers in the expression statement. I used 10 here, but it can also be replaced by a variable or mathmatical expression.
repeat(Math.sin(10))
{
// do whatever
}
Note that the expression is rounded to the nearest whole number if it comes up with a decimal number.