[solved] OSWeb break if loop
I'm trying to code an experiment for OSWeb where a 50-interation loop is broken if the participant presses the 'space' key.
I have used inline java script to create a breaking_variable that is true if 'space' is pressed. I have set the 'break if' function to [breaking_variable]=yes. On my desktop - this works perfectly and the loop is broken if the space key is pressed.
But, when I test the experiment online through OSWeb this does not work and I cannot find a way to break the loop. I've tried many different methods and it appears that conditionals don't seem to work on OSWeb with my code.
Is there a way I can break the loop using inline java script or without using a conditional?
Many thanks for your help,