if

MudOS_0.9.18/doc/lpc/constructs/if · 398 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

* The if else statement:

LPC's if statement is identical to that provided by C.  Syntax is as follows:

if (expression)
	statement;

Alternately:

if (expression) {
	statements;
}

Alternately:

if (expression0) {
	statements;
} else {
	statements1;
}

Alternately:

if (expression0) {
	statements0;
} else if (expression1) {
	statements1;
}

The number of else clauses is not explicitly limited.

Site Stats

Snippets: 1791
Codebases: 571