# nReps in the builder

**URL:** <https://discourse.psychopy.org/t/nreps-in-the-builder/21426>\
**Category:** Online experiments\
**Tags:** randomization\
**Created:** [March 17, 2021, 7:26pm UTC](https://discourse.psychopy.org/t/nreps-in-the-builder/21426 "2021-03-17T19:26:57Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Siham](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Siham](https://discourse.psychopy.org/u/Siham)\
**Post date:** [March 20, 2021, 6:41pm UTC](https://discourse.psychopy.org/t/nreps-in-the-builder/21426/21 "2021-03-20T18:41:52Z")

</div>

Thank you very much. The suggestion of having 3 components and addding variables works perfectly. I still have a last issue. The experiment works offline, but not online because of including  
$W2 + ‘\n’ + W9 in the text component. Any idea why this happens?  
Thanks!

---

<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:** [March 20, 2021, 7:18pm UTC](https://discourse.psychopy.org/t/nreps-in-the-builder/21426/22 "2021-03-20T19:18:54Z")

</div>

I’d expect it to work but two alternatives are:

msg = W3+’\n’+W9 in Begin Routine and then set the text component to $msg

Or have the text component as a space constant and then put  
text\_component\_name.text=W3+’\n’+W9 in Begin Routine

The code component needs to be above the text component

---

<div class="post-metadata">

**Author:** ![Siham](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Siham](https://discourse.psychopy.org/u/Siham)\
**Post date:** [March 21, 2021, 4:32pm UTC](https://discourse.psychopy.org/t/nreps-in-the-builder/21426/23 "2021-03-21T16:32:23Z")

</div>

A massive thank you! the problem has been worked out thanks to your suggestions.

[Previous page](https://discourse.psychopy.org/t/nreps-in-the-builder/21426.md?page=1)
