NML:Parameter assignment: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
content of nml r1625 |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{NMLNavBlocksyntax}} |
|||
param[<expression>] = <expression>; |
param[<expression>] = <expression>; |
||
Set a parameter to the given expression. Neither of the two expressions has to be constant, the following is perfectly valid: |
Set a parameter to the given [[NML:Block syntax#Syntax|expression]]. Neither of the two expressions has to be constant, the following is perfectly valid: |
||
<pre style="color:blue"> |
<pre style="color:blue"> |
||
Latest revision as of 13:23, 26 August 2013
Vehicles, Stations, Roadstops, Canals, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Bridges, Badges, Terrain
param[<expression>] = <expression>;
Set a parameter to the given expression. Neither of the two expressions has to be constant, the following is perfectly valid:
param[param[2] + 1] = param[3] * param[4];