Function ActiveCard(Identifier, Suffix)

ActiveCard

The function ActiveCard returns the cardinality of active elements in its identifier argument, or the cardinality of active elements of a suffix of that identifier.

ActiveCard(
    Identifier,    ! (input) identifier reference
    [Suffix]       ! (optional) element in the set AllSuffixNames
    )

Arguments

Identifier
A reference to a set or an indexed identifier.
Suffix
An element in the predefined set AllSuffixNames.

Return Value

If Identifier is a set, the function ActiveCard returns the number of active elements in Identifier. If Identifier is an indexed identifier, the function ActiveCard returns the number of nondefault values stored for Identifier. If Suffix is given, the number of nondefault values stored for the given suffix of Identifier.

Note

The ActiveCard function cannot be applied to slices of indexed identifiers. In such a case, you can use the Count operator to count the number of nondefault elements.

See also

The function Card and Count operator (see also Section 6.1.6 of the Language Reference).