If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): MacOS Catalina 10.15.4
PsychoPy version v2020.1.2
Standard Standalone? (y/n) y
What are you trying to achieve?: I’m trying to add a block of text where the text changes depending on a condition. I’m building a Corsi block task, and want the text to display ‘Pay attention’ while a sequence of squares is flashing, and ‘Click the squares in order now’ is the sequence of flashing squares has completed.
What did you try to make it work?:
I’ve entered a text component
And a code component with:
feedback9 = 'Pay attention'
if blkIndex_3 < actualSequenceLength : feedback9 = 'Pay attention' else: feedback9 = 'Click the squares in order now'
When the text component is set to constant, I get an error that it isn’t defined. When I set the text component to set every repeat, the text displays, but it doesn’t update. I don’t want to use set every frame, because I want to be able to have this work on Pavlovia.