Global variable

OS : Win10
PsychoPy version : 2022.2.4
Standard Standalone? : y


I would like to calculate the value of a varibale in a routine and then use it in a subsequent routine. Something like a global varible.

Is this possible in general?
When I try it at the moment, I can’t change the value and it stays at the initially set value.


In general this is standard. How are you setting/changing the variable?

Hello @wakecarter,

thanks for your quick reply. I made a mistake elsewhere in my code, which is why it didn’t work. So problem fixed! :smiley: