Skip to content

$findObjectProperty

$findObjectProperty will search for a given property of an object and return it.

Usage

$findObjectProperty[objectName;property;format?]

Parameters

FieldTypeDescriptionRequired
objectNamestringThe object’s name.true
propertystringName of the property to be searched.true
format?booleanFormat the output?
1. true
2. false (default)
false

Example(s)

This will return {"Leref": "Ferel"} as it was able to find “object”:

1
client.command({
2
name: "findObjectProperty",
3
code: `
4
$findObjectProperty[Object Name;Leref]
5
$createObject[Object Name;{"Leref": "Ferel", "aoi.js": "dbd.js"}]
6
`
7
});