Response dependent feedback working locally but not online

I just put that in, and now the damned thing is stuck on initialising experiment! :slight_smile:

Yes, it’s a keyboard component

I just put that in, and now the damned thing is stuck on initialising experiment! That’s a syntax error (tutorial_js_syntax_error [PsychoPy]), likely a little accident with which round brackets you replaced. Below I did the replacement for you.

console.log('values used in if statement')
console.log(PRespp.corr)
console.log(N)
console.log(PRespp.rt)
msg = " ";
if (PRespp.corr) {
    msg = "correct";
    console.log('correct');
}
if (((N === 0) && (PRespp.corr === 0))) {
    msg = "do not respond";
    console.log('do not respond');
}
if ((((N === 1) && (PRespp.corr === 0)) && (PRespp.rt === undefined || PRespp.rt.length === 0))) {
    msg = "too slow";
    console.log('too slow');
} else if (((N === 1) && (PRespp.corr === 0))) {
    msg = "incorrect";
    console.log('incorrect');
}
console.log('msg after code block executed');
console.log(msg);

Thanks for the heads-up about the component. I’m making a list of these kinds of translation issues, so that we can go fix them in future releases.

Thank you very very much! Thank you doesn’t quite seem like enough for all the time you have spent with me today. But, in any case, thank you!

It works? Happy to read that. Good luck with your research!