decode: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) No edit summary |
|||
Line 1: | Line 1: | ||
== | {{MacroFunction | ||
|name=decode | |||
|description=Decodes a string that was encoded with the [[encode|encode()]] function. The [[encode | encode()]] and decode() functions can be used to encode a property list so that it can be embedded within another property list. | |||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: str = decode(str)] | [h: str = decode(str)] | ||
</source> | </source> | ||
|example= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: getStrProp(decode(getStrProp(inv, "Weapons"), "Name")] | [h: getStrProp(decode(getStrProp(inv, "Weapons"), "Name")] | ||
</source> | </source> | ||
}} | |||
[[Category:String Function]] |
Revision as of 01:28, 7 March 2009
decode() Function
Decodes a string that was encoded with the encode() function. The encode() and decode() functions can be used to encode a property list so that it can be embedded within another property list.
Usage
[h: str = decode(str)]
Example
[h: getStrProp(decode(getStrProp(inv, "Weapons"), "Name")]