Addvar
From Retro CDN
Revision as of 16:01, 20 December 2020 by Scarred Sun (talk | contribs) (Created page with "<includeonly>{{#ifeq:{{#var:{{{1}}}}}||{{#vardefine:{{{1}}}|{{{2}}}}}|{{#vardefine:{{{1}}}|{{#expr:{{#var:{{{1}}}}}+{{#if:{{{2|}}}|{{{2}}}|0}}}}}}}}</includeonly><noinclude> A...")
Revision as of 16:01, 20 December 2020 by Scarred Sun (talk | contribs) (Created page with "<includeonly>{{#ifeq:{{#var:{{{1}}}}}||{{#vardefine:{{{1}}}|{{{2}}}}}|{{#vardefine:{{{1}}}|{{#expr:{{#var:{{{1}}}}}+{{#if:{{{2|}}}|{{{2}}}|0}}}}}}}}</includeonly><noinclude> A...")
Add a value to a variable.
Usage
{{#vardefine:testvalue|5}} {{addvar|testvalue|3}} testvalue = {{#var:testvalue}}
Returns:
testvalue = 8