Collection.prototype.attrInt32()

Return int32 file attribute value for the first file in the collection where it is defined.

Syntax

collection.attrInt32(key string) int32

Parameters

key string

Name of the attribute.

Description

Walk the collection and return the first int32 file attribute value that is defined. When the attribute is not defined on any of the files, an empty value of the type is returned, which is 0.

Examples

Empty collection.

Getting undefined attribute.

Single defined attribute.

Return the first value found.