From the NannyMUD documentation

LAST CHANGE

2000-12-16

TOPIC

NAME

        for - The for statement.

DESCRIPTION

	for (expr1; expr2; expr3) statement;

	Execute 'expr1' once. Then, while 'expr2' returns a non-zero
	value, execute 'statement'. Every time 'statement' has been
	executed, or a 'continue' statement has been executed, execute
	'expr3' before next loop.

	A 'break' in the 'statement' will terminate the loop. A
	'continue' will	continue the execution from the beginning of
	the loop.

EXAMPLE

	for (i=0; i<11; ++i) {
	  write(i+" ");
	}
	will give the following output:

	0 1 2 3 4 5 6 7 8 9 10

SEE ALSO

        do in LPC/do

SEE ALSO

        while in LPC/do
        while in LPC/while

SEE ALSO

        foreach in LPC/foreach