# continueRoutine = false not working online

**URL:** <https://discourse.psychopy.org/t/continueroutine-false-not-working-online/16762>\
**Category:** Online experiments\
**Created:** [September 25, 2020, 12:25am UTC](https://discourse.psychopy.org/t/continueroutine-false-not-working-online/16762 "2020-09-25T00:25:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mengting](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Mengting](https://discourse.psychopy.org/u/Mengting)\
**Post date:** [September 25, 2020, 12:25am UTC](https://discourse.psychopy.org/t/continueroutine-false-not-working-online/16762/1 "2020-09-25T00:25:32Z")

</div>

I’m trying to set conditional routine on test. This is the flow of test

 ![Screen Shot 2020-09-24 at 8.17.32 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/a/5ac09001b043ad9f8560a7ea92eda0b5d6bb68b8.png)  
If they press v, they will only do old response routine; if pressing b, they will only do similar response routine and if pressing n, they will only do new response routine.  
Following are the code and auto JS. The code component works correctly and well locally and not works online. The continueRountine command is ignored. Pressing v, b or n, all three routines run consecutively.  
 ![Screen Shot 2020-09-24 at 8.16.51 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/6/06030d0cf3dcba9fd616a27d58b36da1e9ec3c52.jpeg)  
 ![Screen Shot 2020-09-24 at 8.17.10 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/0/906e2ba38c64d18109b33d82593bd75923023092.png)  
 ![Screen Shot 2020-09-24 at 8.17.26 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/5/15fedc83968b214e9f42939cf332f1f3a3539f53.png)  
Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![tlan](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlan](https://discourse.psychopy.org/u/tlan)\
**Post date:** [September 25, 2020, 1:41am UTC](https://discourse.psychopy.org/t/continueroutine-false-not-working-online/16762/2 "2020-09-25T01:41:09Z")

</div>

I think you need it under each frame.

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [September 25, 2020, 3:35am UTC](https://discourse.psychopy.org/t/continueroutine-false-not-working-online/16762/3 "2020-09-25T03:35:20Z")

</div>

This is a long-standing bug - have filed an issue here:

> <https://github.com/psychopy/psychopy/issues/3168>
>
> To skip a routine in PsychoPy, one inserts a conditional that sets continueRoutine = False in the "Begin Routine" tab. This...

But in the interim, yes, follow @tlan’s advice.

---

<div class="post-metadata">

**Author:** ![Mengting](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Mengting](https://discourse.psychopy.org/u/Mengting)\
**Post date:** [September 25, 2020, 3:41am UTC](https://discourse.psychopy.org/t/continueroutine-false-not-working-online/16762/4 "2020-09-25T03:41:20Z")

</div>

Thanks! Now it works well online!

---

<div class="post-metadata">

**Author:** ![Mengting](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Mengting](https://discourse.psychopy.org/u/Mengting)\
**Post date:** [September 25, 2020, 3:42am UTC](https://discourse.psychopy.org/t/continueroutine-false-not-working-online/16762/5 "2020-09-25T03:42:04Z")

</div>

Thanks! fixed it now.
