getMatchingProperties
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
This article needs: Corrections to possibly inaccurate information. Examples of usage.
getMatchingProperties() Function
• Introduced in version 1.3b54
Returns a String List or JSON Array with names of the Token Properties on a specific Token that match the given pattern.
Usage
getMatchingProperties(pattern)
getMatchingProperties(pattern, delim)
getMatchingProperties(pattern, delim, id)
Parameters
pattern
- A regular expression(regex) that represents the pattern the properties should match.delim
- The delimiter used in the String List that is returned, defaults to","
. Returns a JSON Array if"json"
is specified.id
- The tokenid
of the token that is checked for properties that match the given pattern, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.