- Function IdentifierUnit(identifierName)¶
IdentifierUnit¶
The function IdentifierUnit
returns the unit of identifierName
as it is declared.
IdentifierUnit(
identifierName) ! (input) scalar element parameter
Arguments¶
- identifierName
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. IfidentifierName
is not a parameter, variable or constraint, the unit[]
is returned without further warning.
Note
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
The functions
IdentifierDimension
andIdentifierType
.Working with the Set AllIdentifiers of the Language Reference.
The common example in Listing 1.