====== loopIndex() ====== The function ''loopIndex()'' returns the counter of ''[[looppage]]'' or ''[[looptopage]]''. ''int|false **loopIndex**()'' Using ''loopIndex()'' is particularly useful in combination with ''[[looptopage]]'', if the counter is required on a later page within the loop. // Page 1 $i = loopToPage('page5', 3); html('

Round '.($i + 1).' of 3

'); // Page 2 $i = loopIndex(); html('

Round '.($i + 1).' of 3

');
The function ''loopIndex()'' can also be used in the //PHP for Processing Responses//. However, the command so far always returns ''false'' for the first round there. This may have to be taken into account when using it.