QUEST loop not terminating online

I solved the StopInterval problem. Will post my solution shortly (it’s super late here), but replying because this might help you and your research if necessary.

Step 1) Add stopInterval to your conditions file (wtv number you need)

Step 2) Add a new code component in the trial loop that uses quest and paste the code in it as JS and END Routine

Code used for stopinterval

Step 3) Add code to Routine


if (typeof currentLoop !== ‘undefined’ && currentLoop.name) {
if (currentLoop.currentStaircase) {
console.log(“Current staircase:”, currentLoop.currentStaircase.name);
console.log(“StopInterval value:”, currentLoop.currentStaircase._stopInterval);
console.log(“Confidence interval:”, currentLoop.currentStaircase.confInterval(true));
console.log(“Should stop?”, currentLoop.currentStaircase.confInterval(true) < currentLoop.currentStaircase._stopInterval);
console.log(“Is finished?”, currentLoop.currentStaircase._finished);
}
}

I found this