This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

GetCustomAttribute()

Deprecated in 3.0.

Please use getCustomAttribute() method of NetObj class instead.

GetCustomAttribute(object, name): String

Lookup custom attribute of the object.

Alternatively, attributes can be accessed as instance attribues (with ., attribute should exist) or by using attribute@object notion (which will return null instead of runtime error if attribue is missing).

Table 1. Parameters

object

Object to query.

name

Name of the custom attribute.

Return

String value of the custom attribute of null if not found.

>>> GetCustomAttribute($node, "test")
testvalue
>>> $node.test
testvalue
>>> test@$node
testvalue