Actions

Template

Incvar

From NEC Retro

Revision as of 13:23, 1 January 2022 by Black Squirrel (talk | contribs) (Text replacement - "Category:NEC Retro templates" to "Category:Templates")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Increment a variable by 1.

Usage

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

Returns:


testvalue = 6