7.4

Table Of Contents
Name of the variable to use for iterations. The variable must already exist.
startvalue
Integer value to initialize varname.
increment
Integer value used to increment varname after each iteration.
stopvalue
Integer value after which iterations stop.
Code Sample Example
This example simply prints 5 lines of text.
To cycle backwards through values, make startvalue larger than stopvalue, and specify a negative increment.
Example
define(&x,integer,1)
for(&x,1,1,5)
show('Line '+inttostr(&x))
crlf()
endfor()
Repeat... Until (procedure)
Repeat a sequence of commands until a condition is true. It is similar to a for... endfor loop in that you can nest the loops. It is
different from a for... endfor loop in that the loop always executes at least once, and that you tie the number of times the
loop repeats to a Boolean condition. For example you might tie the number of times the loop repeats to the occurrence of a
piece of data in the data stream.
Syntax
repeat
until( expression )
Argument
expression
Boolean value. If it evaluates to true, the loop ends. If it evaluates to false, the loop repeats.
Code Sample Example
This example prints the string Cheers’ ten times, one underneath the other, with a dashed line above and below the ten
instances.
Example
show('---------------')
crlf(0.16)
©2010 Objectif Lune Inc - 400 -