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.

One SCO with 2 parts.  Part one is labeled Bones of the Body Content. Part two is labeled Bones Post-Test. If the learner's post-test score is greater than or equal to 80% then the SCO is passed. If the learners post-test score is less than 80% then the SCO is 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.