# Self-paced reading task restart loop button

**URL:** <https://discourse.psychopy.org/t/self-paced-reading-task-restart-loop-button/11005>\
**Category:** Builder\
**Created:** [February 14, 2020, 4:15pm UTC](https://discourse.psychopy.org/t/self-paced-reading-task-restart-loop-button/11005 "2020-02-14T16:15:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 15, 2020, 3:24am UTC](https://discourse.psychopy.org/t/self-paced-reading-task-restart-loop-button/11005/2 "2020-02-15T03:24:17Z")

</div>

> [@Move Forward & Backward through a Slideshow](https://discourse.psychopy.org/t/move-forward-backward-through-a-slideshow/10847/2):
>
> Hi Scott, You are right: nest a second loop inside your main trial loop, only surrounding the routine(s) you want to keep repeating. Don’t connect this inner loop to a conditions file. Instead just give it some unfeasibly large nReps value (like 100), so that the trial can be repeated up to that many times. Insert a code component from the “custom” component panel. In the “End routine” tab of that component, put something like the code below. The idea is to terminate the inner loop if you simp…

---

_[View the full topic](https://discourse.psychopy.org/t/self-paced-reading-task-restart-loop-button/11005)._
