psychopy.org | Reference | Downloads | Github

How to come back to previous routine using code?


#1

Is there any command to get back to previous routine? I know how to move forward, but not back. Any suggestions?


Adjust bar orientation through keyboard
#2

This is usually done with loops. Have a loop around both routines. At the end of the second, if you want to repeat the first, do nothing, it will run again automatically. If you don’t want to go back, then set your_loop_name.finished = True


#3

May I ask how to achieve the same thing in an online experiment? How can I call removeLoop(loop)? I keep getting error messages. Thanks!!