for
The for keyword introduces an execution loop.
Purpose
A statement for executing a statement block as many times as matching objects are found to start the action.
Syntax
for (initialize; test; increment) statement;
Description
Use the for statement to execute multiple times the statement or a block of statements enclosed in braces ({}). The initialize, test, and increment arguments can be any valid expression, as in the Java™ programming language. The statement block can execute any ARL statement and any arithmetic expressions and method calls.
Example
for (int i = 0; i < list.size(); i+=1) {
note("a list element : " + list.elementAt(i));
}