Difference between revisions of "IndexValue"
m (adding doc status category) |
|||
Line 8: | Line 8: | ||
= IndexValue(I) = | = IndexValue(I) = | ||
− | Returns the index value for the given variable or index. | + | Returns the index value for the given variable or index I. Some variables have both an index |
− | + | value and a result value. Examples include -- a [[Self-Indexed Arrays|self-indexed array]]; a variable or index defined as a list of identifiers or list of expressions; and a Choice list with a self-domain. IndexValue(I) returns the index value of I, where (I) alone would return its result value. | |
− | |||
− | |||
− | |||
= Library = | = Library = |
Revision as of 01:53, 20 August 2007
What's new in Analytica 4.0? >
(new to Analyica 4.0, requires build 4.0.0.33 or later)
IndexValue(I)
Returns the index value for the given variable or index I. Some variables have both an index value and a result value. Examples include -- a self-indexed array; a variable or index defined as a list of identifiers or list of expressions; and a Choice list with a self-domain. IndexValue(I) returns the index value of I, where (I) alone would return its result value.
Library
Details
The IndexValue function, if it weren't built-in, could easily be defined within Analytica 4.0 as:
Function IndexValue( I : IndexType ) := I
This definition, however, requires Analytica 4.0 or later.
Examples
Index L := [I,J,K,"value"] Index rows := 1..Size(A) Variable Flat_A := MdArrayToTable( A, rows, IndexValue(L) )
Download example model file File:IndexValueFunctionEg.ANA.
See Also
Comments
Enable comment auto-refresher