# 'Before Experiment' vs 'Begin Experiment'

**URL:** <https://discourse.psychopy.org/t/before-experiment-vs-begin-experiment/15654>\
**Category:** Coding\
**Created:** [August 12, 2020, 8:45am UTC](https://discourse.psychopy.org/t/before-experiment-vs-begin-experiment/15654 "2020-08-12T08:45:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Khoo](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@Josh\_Khoo](https://discourse.psychopy.org/u/Josh_Khoo)\
**Post date:** [August 12, 2020, 8:45am UTC](https://discourse.psychopy.org/t/before-experiment-vs-begin-experiment/15654/1 "2020-08-12T08:45:23Z")

</div>

Hello! In the Psychopy 2020.2 release, the builder code component introduces a new tab called ‘Before Experiment’. What are the difference between ‘Before Experiment’ and ‘Begin Experiment’?

Many thanks.

---

<div class="post-metadata">

**Author:** ![TParsons](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/tparsons/32/8301_2.png) [@TParsons](https://discourse.psychopy.org/u/TParsons)\
**Post date:** [August 12, 2020, 8:47am UTC](https://discourse.psychopy.org/t/before-experiment-vs-begin-experiment/15654/2 "2020-08-12T08:47:11Z")

</div>

Hi Josh,

We still need to update the docs on this I think, but basically Before Experiment runs before anything else - including the window being created. Begin Experiment runs at the beginning of the experiment, so after the window is made but before any routines have begun.
