Scenario 4

The SCO in this scenario consists of a four-step process for printing a Word document. Once the learner clicks print in Step 3, the SCO is considered completed. If the learner only makes it through Steps 1 and 2, then the SCO Completion Status is considered unknown.
6. Complete the code below used to set the Completion Status for this scenario:

// hasPrinted is initially set to false, when the user
// presses the Print button the variable is set to true.
var hasPrinted = false;
function setStatus(hasPrinted)
{
if(hasPrinted)
{
SetValue( "cmi.completion_status", "");
}
else
{
SetValue("cmi.completion_status", "");
}
}
Click Submit after you complete the code.