encode

From RPTools Wiki
Revision as of 17:07, 14 March 2023 by Taustin (talk | contribs) (Text replacement - "source>" to "syntaxhighlight>")
Jump to navigation Jump to search

encode() Function

Introduced in version 1.3b48
Encodes a string that was can be decoded with the decode() function. The decode() and encode() functions can be used to encode a property list so that it can be embedded within another property list.

Usage

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

Example

<source lang="mtmacro" line>

[h: innerPropList = encode("val1=blah ; val2=blahblah")] [h: props = setStrProp(props, key, innerPropList)]

</syntaxhighlight>