$findObjectProperty
$findObjectProperty will search for a given property of an object and return it.
Usage
$findObjectProperty[objectName;property;format?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| objectName | string | The object’s name. | true |
| property | string | Name of the property to be searched. | true |
| format? | boolean | Format the output? 1. true 2. false (default) | false |
Example(s)
This will return {"Leref": "Ferel"} as it was able to find “object”:
1client.command({2 name: "findObjectProperty",3 code: `4 $findObjectProperty[Object Name;Leref]5 $createObject[Object Name;{"Leref": "Ferel", "aoi.js": "dbd.js"}]6 `7});