Difference between revisions of "Addvar"
From Sega Retro
Scarred Sun (talk | contribs) m (Protected "Template:Addvar": High-traffic template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m (Text replacement - "Category:Sega 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: | + | [[Category:Templates]] |
</noinclude> | </noinclude> |
Latest revision as of 13:03, 1 January 2022
Add a value to a variable.
Usage
{{#vardefine:testvalue|5}} {{addvar|testvalue|3}} testvalue = {{#var:testvalue}}
Returns:
testvalue = 8