# Understanding Variable Window variable assignment

**URL:** <https://mworks.discourse.group/t/understanding-variable-window-variable-assignment/177>\
**Category:** Support\
**Created:** [July 2, 2020, 2:41pm UTC](https://mworks.discourse.group/t/understanding-variable-window-variable-assignment/177 "2020-07-02T14:41:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 2, 2020, 2:41pm UTC](https://mworks.discourse.group/t/understanding-variable-window-variable-assignment/177/1 "2020-07-02T14:41:15Z")

</div>

Hey Chris,

Quick question: when I assign a value to a variable using the Variables Window while a `protocol` is running, when does the variable assignment take place?

Does this affect running `task` systems, `trial`, or `block`s in any way (other than the effects incurred by the new value of the variable)? (For example, `yield()`ing out of the `task`).

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 2, 2020, 3:03pm UTC](https://mworks.discourse.group/t/understanding-variable-window-variable-assignment/177/2 "2020-07-02T15:03:00Z")

</div>

Assignments made via the Variables Window take place immediately. The running experiment will see the new value, but the assignment shouldn’t affect any part of the experiment that doesn’t directly depend on that value. The outcome should be the same as if you assigned to the variable within your protocol.

Does that answer your question?

Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 2, 2020, 3:05pm UTC](https://mworks.discourse.group/t/understanding-variable-window-variable-assignment/177/3 "2020-07-02T15:05:19Z")

</div>

Yes, thank you!  
Michael

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 8:28pm UTC](https://mworks.discourse.group/t/understanding-variable-window-variable-assignment/177/4 "2022-07-19T20:28:02Z")

</div>

Closed on July 19, 2022, 8:28pm UTC


