set: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function set== Sets the value of a variable. ===Usage=== <source lang="mtmacro" line> [h: set(varName, val)] </source> ===Examples=== <source lang="mtmacro" line> [h: set("test",...)
 
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function set==
{{MacroFunction
|name=set
|description
Sets the value of a variable.
Sets the value of a variable.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: set(varName, val)]
[h: set(varName, val)]
</source>
</source>


 
|example=
 
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
     [h: set("test", 33)] [r:test]
     [h: set("test", 33)] [r:test]
Line 15: Line 15:
Returns  
Returns  
     33
     33
}}
[[Category:Miscellaneous Function]]

Revision as of 03:33, 9 March 2009

set() Function

Usage

[h: set(varName, val)]

Example

    [h: set("test", 33)] [r:test]

Returns

33