[solved] Counterbalancing question
I am trying to implement counterbalancing using [subject_parity] in the first 'instructions' sketchpad the code I implemented works fine, however "instructions2" and 'instructions3' inside a block loop generate an error of "undefined" for 'correct' but not for 'incorrect' conditions. Can you help me figure out what I'm doing wrong?
Thanks
Thanks
Comments
[received experiment by email] I see! The problem is that "correct" is a special variable. When a response is collected, "correct" is set to 1 if the response matches "correct_response" and to 0 if it doesn't. If there is no "correct_response", "correct" is set to "undefined", as in your case. This happens even when you set the duration of a sketchpad (or another item) to "keypress", instead of explicitly using a keyboard_response (or other response collection) item.
If you use a different name for the variable, you should be fine! So, as far as I can tell, the problem is not related to counterbalancing per se.
Cool experiment, btw.
Check out SigmundAI.eu for our OpenSesame AI assistant!