[solved] Run if... 50% of the time
I want to play an error sound 50% of the time my participant answers incorrectly. Right now I have it playing when they answer incorrectly but do not know how to make it only 50% of the time. Is it possible to do this?
Comments
Hi,
Sure. What you could do is first create a variable that indicates whether or not a sound should be played on an error. You could do this with a simple
inline_scriptat the start of your trial:Next, you can use a run-if statement for you sampler that evaluates whether a response was incorrect and the
sound_on_errorvariable is 1. Like so:Does that make sense?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
That's great. Thank you!