SetCustomAttribute()

Deprecated in 3.0.

Please use setCustomAttribute() method of NetObj class.

SetCustomAttribute(object, name, value): String

Set custom attribute name to value on object.

Table 1. Parameters

object

Target object.

name

Custom attribute name.

value

Custom attribute value.

Return

Previous value of the custom attribute, or null if it did not exist or the script lacks modify access to the object.

>>> SetCustomAttribute($node, "test", "test value")
>>> test@$node
test value