Difference between revisions of "NML:If"
From GRFSpecs
Jump to navigationJump to search (content of nml r1625) |
(No difference)
|
Revision as of 11:33, 21 August 2011
if (expression) {
block;
} else {
block;
}
For example:
if (param[1] == 1) {
param[2] = 3
} else {
param[2] = 5
}