Detect if last question reached
Hello,
I'm currently developing a quiz app with H5P and I need a way to see if the question that I'm currently on is the last question in the set. For instance, I would like to display a special message when the user reaches the final question in the set but I can't find a way to differentiate the last question from any other question.
Using "H5P.externalDispatcher.on('xAPI', function (event) {
console.log(event.data.statement);
});"
I can't find anything that would identify a question as the last one. Is there a way to do this?