# (Solved) Is it possible to use button (like arrow) to navigate thru the trials back and forth

**URL:** <https://discourse.psychopy.org/t/solved-is-it-possible-to-use-button-like-arrow-to-navigate-thru-the-trials-back-and-forth/22856>\
**Category:** Coding\
**Created:** [May 9, 2021, 2:35am UTC](https://discourse.psychopy.org/t/solved-is-it-possible-to-use-button-like-arrow-to-navigate-thru-the-trials-back-and-forth/22856 "2021-05-09T02:35:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![littlethumb123](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/littlethumb123/32/10926_2.png) [@littlethumb123](https://discourse.psychopy.org/u/littlethumb123)\
**Post date:** [May 9, 2021, 9:13pm UTC](https://discourse.psychopy.org/t/solved-is-it-possible-to-use-button-like-arrow-to-navigate-thru-the-trials-back-and-forth/22856/7 "2021-05-09T21:13:07Z")

</div>

Solution: Thanks to @wakecarter and also refer to the following post: [Here](https://discourse.psychopy.org/t/moving-through-routines-with-left-and-right-arrow-key/13751/4) is the core of solving this problem.  
The basic idea is to use repetition to mimic the back and forth. Set 1000 reps and each time show a given instruction based on the pressed key.  
Attached is a revised version that works to walk the subject thru three instruction back and forth and, when finished, jump to some test.  
[Instruction walk thru.psyexp](https://discourse.psychopy.org/uploads/short-url/qzU4LkL965znAFbAaSIYfJwBQea.psyexp) (29.6 KB)

---

_[View the full topic](https://discourse.psychopy.org/t/solved-is-it-possible-to-use-button-like-arrow-to-navigate-thru-the-trials-back-and-forth/22856)._
