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;
}
Comments
Please sign in to leave a comment.