Scenario 4

Your Code

if(auidoCaptioningOn == "true")
{
SetValue("cmi.learner_preference.
","1");
}
else if (audioCaptioningOn == "false")
{
SetValue("cmi.learner_preference.
","-1");
}
else
{
SetValue("cmi.learner_preference.
","0");
}

Code Example

if(auidoCaptioningOn == "true")
{
SetValue("cmi.learner_preference.audio_captioning","1");
}
else if (audioCaptioningOn == "false")
{
SetValue("cmi.learner_preference.audio_captioning","-1");
}
else
{
SetValue("cmi.learner_preference.audio_captioning","0");
}