attribute_exists()
Check whether the object obj has attribute attr or not
attribute_exists(obj, attr)
obj (object) — An objectattr (string) — Attribute name
boolean — Returns true if the object obj has attribute attr, and returns false if otherwise
a = {
x: 10,
y: 20
}
attribute_exists(a, "x") ' Returns true
attribute_exists(a, "z") ' Returns false
This function is available on Dinfio version 3.1.06 or later