decode: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Function decode==
{{MacroFunction
{{ProposedChange}}
|name=decode
|version=1.3b48
|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.


Decodes a string that was encoded with the [[Macros:Function:encode|encode()]] function. The [[Macros:Function:encode | 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)
</syntaxhighlight>


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

Latest revision as of 22:53, 27 April 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

decode(str)

Example

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

See Also