Understanding Variable Window variable assignment

mil's Avatar


02 Jul, 2020 02:41 PM

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 blocks in any way (other than the effects incurred by the new value of the variable)? (For example, yield()ing out of the task).

  1. Support Staff 1 Posted by Christopher Sta... on 02 Jul, 2020 03:03 PM

    Christopher Stawarz's Avatar

    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?


  2. 2 Posted by mil on 02 Jul, 2020 03:05 PM

    mil's Avatar

    Yes, thank you!

  3. Christopher Stawarz closed this discussion on 06 Jul, 2020 02:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac