json.isEmpty: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page Json.isEmpty to json.isEmpty: Converting page titles to lowercase) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
json.isEmpty(variable) | json.isEmpty(variable) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
* {{code|variable}} - The variable to test, if it contains an empty JSON array, JSON object, or an empty string it returns {{code|true}}({{code|1}}). In any other case it will return {{code|false}}({{code|0}}). | * {{code|variable}} - The variable to test, if it contains an empty JSON array, JSON object, or an empty string it returns {{code|true}}({{code|1}}). In any other case it will return {{code|false}}({{code|0}}). |
Latest revision as of 23:59, 15 March 2023
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
json.isEmpty() Function
• Introduced in version 1.3b51
Checks to see if a JSON array, or JSON object is empty.
Usage
json.isEmpty(variable)
Parameters
variable
- The variable to test, if it contains an empty JSON array, JSON object, or an empty string it returnstrue
(1
). In any other case it will returnfalse
(0
).