int GetParentIterationIndex(int inParentLevel)
Gets a level number within the nested loops and returns the index of the current iteration in that loop level.
The following is a list of parameters the functions receives
|inParentLevel||Int32||Loop chapter level Index in the Nested Loops structure|
Loop chapter B is nested in loop chapter A. Loop A iterates a maximal number of 3 iterations.
Loop A is currently on its second iteration (iteration index 2).
Calling GetParentIterationIndex(1) from inside Loop B, will return the value 2.
"1" is sent as the parameter to the function, because loop A is one level above loop B.