# Psychojs - Inner Loop pattern

**URL:** <https://discourse.psychopy.org/t/psychojs-inner-loop-pattern/8087>\
**Category:** Online experiments\
**Created:** [June 12, 2019, 2:30am UTC](https://discourse.psychopy.org/t/psychojs-inner-loop-pattern/8087 "2019-06-12T02:30:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![erik.kastman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/erik.kastman/32/105_2.png) [@erik.kastman](https://discourse.psychopy.org/u/erik.kastman)\
**Post date:** [July 31, 2019, 7:22pm UTC](https://discourse.psychopy.org/t/psychojs-inner-loop-pattern/8087/3 "2019-07-31T19:22:59Z")

</div>

PS - @dvbridges ; Can you confirm that the solution you listed with `cond.xlsx` and `A.xlsx` in [your earlier answer](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/27) works in psychojs? I’m able to use a variable as a conditions file name in python, but not online, getting a `<condition_filename> is not defined` error (I think because of the way the loop is scheduled).

If it doesn’t work, can you think of a way to make it? Thank you!

---

_[View the full topic](https://discourse.psychopy.org/t/psychojs-inner-loop-pattern/8087)._
