Access variable's history
Although it is a similar question as the one I've previously asked, I opened an new discussion because it may be interesting for others too.
I found the following page on accessing previous responses: https://osdoc.cogsci.nl/3.1/manual/python/responses/. However, I wanted to know whether there is a way to access another variable's history in a similar fashion.
Imagine that you have a binary variable that can either have the values 0 or 1. How could I access the history of this variable via an inline script?
I tried to define a variable and access it in a similar fashion as described in the link above:
example = var.binaryvariable[:10]
However, this only led to the following error message: 'int' object has no attribute 'getitem'.
Thank you so much in advance!