For

<< Click to Display Table of Contents >>

Navigation:  Basic concepts > Statements >

For

Syntax: For <Assignment> ';' <BoolExpression> ';' <Assignment> Do <Statements> End

The For loop lets you iterate a statement block until the Boolean expression evaluates to false. It is often used to process an array of values.

Example:

For i = 0; i < 10; i = i + 1 Do

   //statements here

End