decode: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function decode== {{ProposedChange}} Decodes a string that was encoded with the encode() function. The encode() and decode() func...)
 
No edit summary
Line 7: Line 7:
===Usage===
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: str = decode(string)]
[h: str = decode(str)]
</source>
</source>



Revision as of 12:33, 1 December 2008

Function decode

 Note: This refers to a proposed change that has not been implemented in the main code base yet.

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)]

Examples

[h: getStrProp(decode(getStrProp(inv, "Weapons"), "Name")]