OnCreateIterationOrder()

void OnCreateIterationOrder(inChapterIndex, inIterationOrder)

Description

This callback function is called when there is a need to set the order of the iterations in a chapter

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inCahpterIndex Int32 the chapter index 
inIterationOrder  Int[] the array with the order to set

 

Return Type

void

 

Example

Set the order of the iterations for chapter 2 to be 2,1,3,4,5 if the answer to Q1 is 2:

function OnCreateIterationOrder(inChapterIndex, inIterationOrder)
{
    var retVal = inIterationOrder;
    if(inChapterIndex==2)
    {
        if(Answer(1)==2)
        {
            retVal = [2,1,3,4,5];
        }
    }
    return retVal;
}

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.