Post by ati on May 26, 2021 16:37:41 GMT
In our study, just one group of visual stimuli will be shown to the participants randomy. The stimuli in the groups also should be randomized.
It says that myitems was not defined but my table is myitems.
table myitems
N001 img_1
N002 img_2
N004 img_3
N011 img_4
N014 img_5
task prepare_arrays
table myitems
set &&neutral append @1
set &&positive append @2
set &&neutral shuffle
set &&positive shuffle
if myitems == 1
set &neutral show bitmap @1
fi
if myitems == 2 #Pick item
set &positive show bitmap @2 #from list 2
fi
show &&neutral
show &&positive
delay 1000
task mytask
set $neutral &&neutral remove first
set $positive &&positive remove first
show bitmap $neutral
show bitmap $positive
delay 1000
save $positive $neutral
block items
tasklist
prepare_arrays 5 fixed
end
block test
tasklist
mytask 5 random
end
Here, tried another thing for the same thing. But this time, there are three groups. It does not run at all.
table lists
N001 img_1 img_19
N002 img_2 img_20
N004 img_3 img_21
N011 img_4 img_22
N014 img_5 img_23
task my_task
table lists
if &mylist == 1 #Pick item
set &neutral show @1 #from list 1
fi
if &mylist == 2 #Pick item
set &positive show @2 #from list 2
fi
if else &mylist == 3 #Pick item
set &negative show @3 #from list 3
delay 1000
save &mylist
block myblock
set &mylist random 1 2 3 #Choose a list number
tasklist
my_task 3 fixed
end
Error:
ERROR: problem_variable in line: 32
>>> set &neutral show @1 #from list 1
Problem: Unknown variable show
ERROR: problem_variable in line: 32
>>> set &neutral show @1 #from list 1
Problem: Unknown variable show
I could not get the problems on the script.