Difference between revisions of "Incvar"
From Retro CDN
Scarred Sun (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}}...") |
Ccawley2011 (talk | contribs) m |
||
Line 13: | Line 13: | ||
{{#vardefine:testvalue|5}}{{incvar|testvalue}} | {{#vardefine:testvalue|5}}{{incvar|testvalue}} | ||
testvalue = {{#var:testvalue}} | testvalue = {{#var:testvalue}} | ||
− | [[Category: | + | [[Category:Templates]] |
</noinclude> | </noinclude> |
Latest revision as of 08:23, 5 November 2021
Increment a variable by 1.
Usage
{{#vardefine:testvalue|5}} {{incvar|testvalue}} testvalue = {{#var:testvalue}}
Returns:
testvalue = 6