NML:If
From GRFSpecs
Jump to navigationJump to searchVehicles, 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 }