Function IdentifierUnit(identifierName)


The function IdentifierUnit returns the unit of identifierName as it is declared.

     identifierName)       ! (input) scalar element parameter



An element expression in the predefined set AllIdentifiers specifying the identifier for which the unit should be obtained.

Return Value

This function returns a unit. If identifierName is not an identifier, an error message is issued. If identifierName is not a parameter, variable or constraint, the unit [] is returned without further warning.


This function complements the suffix .unit; when the unit of an identifier is a unit parameter, this function will return that unit parameter, whilst the suffix unit will return the value of that unit parameter.

See also