Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Arrays, Vectors, and Subscripts

ELMCOUNT(Range) ELeMent COUNT of Subscript Range

Scroll Prev Top Next More

ELMCOUNT returns the number of elements in a subscript range.  It takes only the name of a subscript range as an argument.  It is the same as using the last element of the subscript range, but will be automatically updated if you add elements to the subscript range.

Units: ELMCOUNT(dimensionless) --> dimensionless

Example

place : boston,paris,london

ELMCOUNT(place) is equal to 3

Availability: Professional and DSS only.

 

Sample model: ELMCOUNT.mdl in FunctionExamples