LOOPINDEX

This establishes a counter that tracks the number of times the statement has executed. This is a zero based counter and is maintained by the system.  This should be used inside MATHLOOP math variables.   

LOOPINDEX Elements/Attributes
TYPE = IIF
Element Attributes Attribute Value Element Value

<MathVariable>

TYPE

LOOPINDEX

There is no element value needed.

   

LOG

Yes:  the result is stored in AsActivityMath table to be used by other activities.

No: the result is not stored. This is the default behavior.  

   

SOURCEARRAY

The name of the MATHLOOP math variable this is associated with. 

XML Example

<MathVariable VARIABLENAME="Segments_index" TYPE="LOOPINDEX" SOURCEARRAY="Segments" DATATYPE="INTEGER"></MathVariable>