Addvar
From NEC Retro
Revision as of 12:34, 14 September 2015 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{#vardefine:{{{1}}}|{{#expr:{{#var:{{{1}}}}}+{{#if:{{{2|}}}|{{{2}}}|0}}}}}}</includeonly><noinclude> Add a value to a variable. ==Usage== <pre> <nowiki>{{#varde...")
Revision as of 12:34, 14 September 2015 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{#vardefine:{{{1}}}|{{#expr:{{#var:{{{1}}}}}+{{#if:{{{2|}}}|{{{2}}}|0}}}}}}</includeonly><noinclude> Add a value to a variable. ==Usage== <pre> <nowiki>{{#varde...")
Add a value to a variable.
Usage
{{#vardefine:testvalue|5}} {{addvar|testvalue|3}} testvalue = {{#var:testvalue}}
Returns:
testvalue = 8