.collection Macro

This macro returns a collection of objects based on the specified scope and condition. Collections are represented as the concatenation of semi-colon terminated OIDs.

.collection (collection-scope [,filter])

The following parameters are available:

Parameter

Description

collection-scope

Scope over which to iterate.

Type: <simple-template> returning a collection scope

filter

[optional] Filter condition

Type : condition

Example:

The following macro returns a subset of the attributes defined on the current classifier whose code starts with a letter between a and e included.

.object(Attributes, (%.1:Code% >= a) and (%.1:Code% <= e))

Result:

C3ADA38A-994C-4E15-91B2-08A6121A514C;58CE2951-7782-49BB-B1BB-55380F63A8C9;F522C0AE-4080-41C2-83A6-2A2803336560;