attribute_set()
Set value to the object's attribute
attribute_set(obj, attr, value)
obj
(object) — An objectattr
(string) — Attribute namevalue
(any) — Value to be set
boolean
— Always returns true
a = {
x: 10,
y: 20
}
attribute_set(a, "z", 30)
attribute_set(a, "x", 12)
This function is available on Dinfio version 3.1.06 or later