attribute_get()
Get the value of the object's attribute
attribute_get(obj, attr)
obj
(object) — An objectattr
(string) — Attribute name
any|nothing
— Returns the value of attribute attr
or returns nothing
if attribute attr
does not exist
a = {
x: 10,
y: 20
}
attribute_get(a, "x") ' Returns 10
attribute_get(a, "z") ' Returns nothing
This function is available on Dinfio version 3.1.06 or later