Incvar
From NEC Retro
Revision as of 06:35, 3 October 2015 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{addvar|{{{1}}}|1}}</includeonly><noinclude> Increment a variable by 1. ==Usage== <pre> <nowiki>{{#vardefine:testvalue|5}}</nowiki> <nowiki>{{incvar|testvalue}}...")
Revision as of 06:35, 3 October 2015 by Black Squirrel (talk | contribs) (Created page with "<includeonly>{{addvar|{{{1}}}|1}}</includeonly><noinclude> Increment a variable by 1. ==Usage== <pre> <nowiki>{{#vardefine:testvalue|5}}</nowiki> <nowiki>{{incvar|testvalue}}...")
Increment a variable by 1.
Usage
{{#vardefine:testvalue|5}} {{incvar|testvalue}} testvalue = {{#var:testvalue}}
Returns:
testvalue = 6