NML:If

From GRFSpecs
Revision as of 11:33, 21 August 2011 by FooBar (talk | contribs) (content of nml r1625)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
if (expression) {
	block;
} else {
	block;
}

For example:

 if (param[1] == 1) {
 	param[2] = 3
 } else {
 	param[2] = 5
 }