Scenario 2


Your Code // 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.", "" )
}

Code Example // 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", "passed" );
}
else
{
  SetValue ( "cmi.success_status", "failed" )
}