Scenario 2

In this example, the learner must be familiar with the bones of the body. After reviewing the instructional content, the learner takes a post-test. If the learner scores an 80% or greater, then the SCO is considered passed. If the learner scores less than 80%, then the SCO is considered failed.

Complete the dot-notation needed to set the appropriate success status:

// initialize the variable to store the learner’s score
var learnersScore;
// get the value of the learner’s score and set the variable "learnersScore" equal to it
learnersScore = GetValue("cmi.score.scaled");
// evaluate the learner’s score
if ( learnersScore >= .80 )
{
SetValue ( "cmi.success_status", "" );
}
else
{
SetValue ( "cmi.", "" )
}
Click after completing the code.