Extracting an item from list and displaying it as text in a sketchpad
Dear Opensesame people,
I'm building a simple experiment in Opensesame and I'm stuck on a problem which has something to do with how the sketchpad script is structured by default.
My task is a version of the n-back in which items (caps lock letters) are presented one at a time. The number of letters in this study list must be random between 6 and 12, and I create the list at the beginning of the trial in an inline object. Then I call each single item of the list one at a time in a series of sketchpad in the sequence.
When I try to show the items calling them in the script where the text is suposed to be, the indication is shown in the slide as a text itself and it doesn't call the item from the list: as an example, I read [studylist[-itemnumber]] instead of C.
I tried to remove the inverted commas, but it looks like they are just a default thing in the text section of sketchpad function in Opensesame.
draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always **text="[studylist[-12]]"** x=0 y=0 z_index=0
Thank you in advance