Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Repeat practice loop if needed

Hello everyone,

in our experiment we would like to repeat the practice loop if the participant struggles with the tasks.

It would be best if we could simply repeat it after a key press of e.g. "w".

If anybody knows how to implement that into our experiment, you would help us a lot!

Thank you.

Comments

  • Hi Maike,

    You will need a little bit of Python inline coding to achieve this. I attached a working example script. Does that help?

    Best wishes,


    Lotje


    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited June 2020

    Hey Lotje,


    thank you so much, you helped me a lot!

    With your script it now works almost exactly as I wanted it to.

    I'm having one last issue.

    I can repeat the practice loop only once.

    After that, it asks me again, whether I want to repeat it, but even it I press "y", it goes on to the experiment.

    How can I change that?

    Thanks!


    Best wishes,

    Maike

  • Hi Maike,

    In the attached example you can repeat the practice as often as it makes you happy. The problem was that even the practice itself could have been repeated unlimited number of times, the inline_script that started the repetition was only executed once. So, after the first repetition in never got to that stage to restart the loop.

    Hope this clears things up.

    Eduard

    Buy Me A Coffee

  • Hi Eduard,

    perfect, thank you so much!

    Now it works perfectly.

    Thank you for the great help from both of you!


    Best wishes,

    Maike

Sign In or Register to comment.