attribute function

Returns the value of a specified attribute from a feature.

Syntax

attribute( feature, attribute_name )

Arguments

feature → a feature
attribute_name → name of attribute to be returned

Example

attribute( $currentfeature, 'name' ) → returns value stored in 'name' attribute for the current feature