NAME
	for - the for statement

DESCRIPTION
	for(expr1; expr2; expr3) statement;
x
	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 (x=0; x<11; ++x) {
	  write(x+" ");
	}

	will give the following output:

	0 1 2 3 4 5 6 7 8 9 10

SEE ALSO
	do, while, foreach

Help topics available:
C_vs_LPC Lesson1 README arrays block
class3 class4 class1 class2 control_structures
for foreach function inheritance keywords
learn_lpc/ lfuns lpc_standardized mappings operators
preprocessor profezzorn_has_the_word switch things_not_to_do types
virtual while

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 125 since January 2020.
This file was last modified: June 2000.