Actions

Template

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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Add a value to a variable.

Usage

{{#vardefine:testvalue|5}}
{{addvar|testvalue|3}}
testvalue = {{#var:testvalue}}

Returns:


testvalue = 8