FORMULA LANGUAGE


Examples: Using iterative statements
The three agents that follow all display the elements of the Categories field one at a time.

1. This agent uses an @For loop. The first parameter initializes the variable n to 1 and executes once. The second parameter tests whether n is less than or equal to the number of elements in Categories. The third parameter increments n. The fourth parameter is a statement that executes as long as the test remains True.


2. This agent uses an @While loop.
3. This agent uses an @DoWhile loop.
See Also