Difference between revisions of "Incvar"

From Sega Retro

(Created page with "<includeonly>{{addvar|{{{1}}}|1}}</includeonly><noinclude> Increment a variable by 1. ==Usage== <pre> <nowiki>{{#vardefine:testvalue|5}}</nowiki> <nowiki>{{incvar|testvalue}}...")
 
m (Protected "Template:Incvar": High-traffic template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(No difference)

Revision as of 18:15, 7 November 2020

Increment a variable by 1.

Usage

{{#vardefine:testvalue|5}}
{{incvar|testvalue}}
testvalue = {{#var:testvalue}}

Returns:


testvalue = 6