# On the problem of Stroop paradigm practice cycle

**URL:** <https://discourse.psychopy.org/t/on-the-problem-of-stroop-paradigm-practice-cycle/37191>\
**Category:** Builder\
**Created:** [October 30, 2023, 11:21am UTC](https://discourse.psychopy.org/t/on-the-problem-of-stroop-paradigm-practice-cycle/37191 "2023-10-30T11:21:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Y.R](https://avatars.discourse-cdn.com/v4/letter/y/54ee81/32.png) [@Y.R](https://discourse.psychopy.org/u/Y.R)\
**Post date:** [October 30, 2023, 11:21am UTC](https://discourse.psychopy.org/t/on-the-problem-of-stroop-paradigm-practice-cycle/37191/1 "2023-10-30T11:21:44Z")

</div>

**PsychoPy version** (v2023.1.1):  
I am new to PsychoPy, having some problems setting up my experiments.

I want to implement it in the Stroop paradigm, and enter the formal experiment when the total number of practice trails exceeds 10 and the accuracy rate is 80%.  
I set up a loop during the practice phase (only once, with 6 trails per loop) and a loop during the accuracy phase. But when I run the program, even if the conditions for entering the formal experiment are met, I am still continuing the practice cycle.  
Sorry, I failed to upload the image. I will upload images in the comments section.  
I don’t have PsychoPy experience, so if there is a way to do this just in builder, I would so appreciate it, but if not, I’ll take what I can get.

Thank you very much for your help

---

<div class="post-metadata">

**Author:** ![Y.R](https://avatars.discourse-cdn.com/v4/letter/y/54ee81/32.png) [@Y.R](https://discourse.psychopy.org/u/Y.R)\
**Post date:** [October 30, 2023, 11:53am UTC](https://discourse.psychopy.org/t/on-the-problem-of-stroop-paradigm-practice-cycle/37191/3 "2023-10-30T11:53:04Z")

</div>

![微信图片_20231030191943](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/b/bbd9513440e64163895d7f788051b77b285c7b31.jpeg)

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [October 30, 2023, 2:56pm UTC](https://discourse.psychopy.org/t/on-the-problem-of-stroop-paradigm-practice-cycle/37191/4 "2023-10-30T14:56:23Z")

</div>

In code 2 you have trails = 0 just above a line where you check whether trails \>= 10. Don’t reset all your variables in code\_2

---

<div class="post-metadata">

**Author:** ![Y.R](https://avatars.discourse-cdn.com/v4/letter/y/54ee81/32.png) [@Y.R](https://discourse.psychopy.org/u/Y.R)\
**Post date:** [October 31, 2023, 1:31am UTC](https://discourse.psychopy.org/t/on-the-problem-of-stroop-paradigm-practice-cycle/37191/5 "2023-10-31T01:31:22Z")

</div>

Your good advice was very much appreciated. Based on your suggestion, I removed trails=0 in code\_2, and the experimental program achieved the desired result. Thanks for your attention and kindly advice.
