Function attribute_set()

← Back to Module core



Module core → attribute_set()

Description

Set value to the object's attribute

attribute_set(obj, attr, value)


Parameters


Return Value


Usage Example

a = {
    x: 10,
    y: 20
}
 
attribute_set(a, "z", 30)
attribute_set(a, "x", 12)


Availability

This function is available on Dinfio version 3.1.06 or later