Function attribute_get()

← Back to Module core



Module core → attribute_get()

Description

Get the value of the object's attribute

attribute_get(obj, attr)


Parameters


Return Value


Usage Example

a = {
    x: 10,
    y: 20
}
 
attribute_get(a, "x")   ' Returns 10
attribute_get(a, "z")   ' Returns nothing


Availability

This function is available on Dinfio version 3.1.06 or later