decode: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Decode to decode: Converting page titles to lowercase)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
decode(str)
decode(str)
</source>
</source>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[h: getStrProp(decode(getStrProp(inv, "Weapons"), "Name")]
[h: getStrProp(decode(getStrProp(inv, "Weapons"), "Name")]
</source>
</source>
}}
}}
[[Category:String Function]]
[[Category:String Function]]

Revision as of 17:21, 14 March 2023

decode() Function

Introduced in version 1.3b48
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

<syntaxhighlight lang="mtmacro" line> decode(str) </source>

Example

<syntaxhighlight lang="mtmacro" line>

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

</source>