Skip to content

$setObjectProperty

$setObjectProperty will set a property of an existing object.

Usage

$setObjectProperty[objectName;property;value]

Parameters

FieldTypeDescriptionRequired
objectNamestringName of the object.true
propertystringName of the property.true
valuestringValue of the property.true

Example(s)

This will return Ferel from the Leref Property:

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