HDAPIGetAnswerIterator Method
This function returns a single number value that represents the repeat index (1-based) of the current dialog. This is different than HDAPI.GetAnswerRepeatIndex, which is 0-based and returns a complete set of four indexes. As such, GetAnswerIterator is most useful for non-nested repeats where there is only one index that matters.

JavaScript API: Direct
Assembly: api.js Version: 1.0.0.0 (1.0.0.0)
Syntax

JavaScript
function GetAnswerIterator();

Return Value

Type: number
The 1-based repeat index of the current repeated dialog.
Remarks

If you use this function on a nested, repeated dialog, it only returns the repeat index at the deepest level. For example, if you have one repeated dialog within another repeated dialog, the value it returns would be 1 whether you're on the first repetition of the first repeated dialog, or you're on the first repetition of the second nested dialog. In other words, GetAnswerIterator always returns the last non-negative number you would get from HDAPI.GetAnswerRepeatIndex, plus 1.
See Also

Reference