Scenario 1
function determineCompletion()
{
var completionThreshold = GetValue( "cmi.
" );
if ( numberOfQuestionsAnswered >= completionThreshold
)
{
SetValue( "cmi.completion_status",
"
" );
}
else
{
SetValue( "cmi.
", "incomplete" );
}
}
function determineCompletion()
{
var completionThreshold = GetValue( "cmi.completion_threshold"
);
if ( numberOfQuestionsAnswered >= completionThreshold
)
{
SetValue( "cmi.completion_status",
"completed" );
}
else
{
SetValue( "cmi.completion_status",
"incomplete" );
}
}