Difference between revisions of "NML:If"
From GRFSpecs
Jump to navigationJump to search (content of nml r1625) |
(add nav template) |
||
Line 1: | Line 1: | ||
+ | {{NMLNavBlocksyntax}} |
||
+ | |||
if (expression) { |
if (expression) { |
||
block; |
block; |
Revision as of 16:33, 21 August 2011
Vehicles, Stations, Canals, Bridges, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Terrain
if (expression) { block; } else { block; }
For example:
if (param[1] == 1) { param[2] = 3 } else { param[2] = 5 }