Scenario 4

Your Code

    function startContent()
    {
       // code to start an internal timer
       startTimer();
       var timeLimitAction =
       GetValue( "cmi.time__action" );

       // currentElapsedTime is a variable
       // set during the startTimer() function
       if ( currentElapsedTime > 50 )
       {
          if ( timeLimitAction ==
    	  "" )
          {
             // exit the SCO
          }
       }
    }

Code Example

    function startContent()
    {
       // code to start an internal timer
       startTimer();
       var timeLimitAction =
       GetValue( "cmi.time_limit_action" );

       // currentElapsedTime is a variable
       // set during the startTimer() function
       if ( currentElapsedTime > 50 )
       {
          if ( timeLimitAction ==
    	  "exit,no message" )
          {
             // exit the SCO
          }
       }
    }