Actions

Template

Difference between revisions of "Addvar"

From NEC Retro

m (Text replacement - "Category:NEC Retro templates" to "Category:Templates")
 
Line 13: Line 13:
 
{{#vardefine:testvalue|5}}{{addvar|testvalue|3}}
 
{{#vardefine:testvalue|5}}{{addvar|testvalue|3}}
 
testvalue = {{#var:testvalue}}
 
testvalue = {{#var:testvalue}}
[[Category:NEC Retro templates]]
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:01, 1 January 2022

Add a value to a variable.

Usage

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

Returns:


testvalue = 8