Hi,
I am using BART script for my project. I do want to insert an emotion sclae within the task though. I prepared a likert scale with 10 items, and I manged to to insert it in the end of the task.
What I also want to do is to create another condition in which participants are asked to rate their emotions when the baloon first explodes and when they choose the collect button first. Is this possible by using 'branch' attribute within trial.pop and trial.collect? But then after they completed the scale, I want participants to continue with BART trials.
What I tried within the trial.collect script was like this:
<trial collect>
/ ontrialbegin = [values.nonexplodedballoons += 1]
/ ontrialbegin = [if (values.ballooncount < 6) values.nonexplodedballoons_5 += 1]
/ ontrialbegin = [if (values.ballooncount > 5 && values.ballooncount <11 ) values.nonexplodedballoons_10 += 1]
/ ontrialbegin = [if (values.ballooncount > 10 && values.ballooncount <16 ) values.nonexplodedballoons_15 += 1]
/ ontrialbegin = [shape.blank.width = picture.balloon.width]
/ ontrialbegin = [shape.blank.height = picture.balloon.height]
/ ontrialbegin = [values.totalearnings = values.totalearnings + (values.pumpcount * values.pumpvalue)]
/ ontrialbegin = [reset(list.pumpresult)]
/ stimulustimes = [1=collectsound, collectbuttonselected, totalearnings; 100 = collectbutton]
/ ontrialend = [values.averagepumpcount = values.totalpumpcount/values.ballooncount]
/ ontrialend = [if (values.ballooncount < 6) values.averagepumpcount_5 = values.totalpumpcount_5/values.ballooncount_5]
/ ontrialend = [if (values.ballooncount > 5 && values.ballooncount <11 ) values.averagepumpcount_10 = values.totalpumpcount_10/values.ballooncount_10]
/ ontrialend = [if (values.ballooncount > 10 && values.ballooncount <16 ) values.averagepumpcount_15 = values.totalpumpcount_15/values.ballooncount_15]
/ ontrialend = [values.adjustedtotalpumpcount += values.pumpcount]
/ ontrialend = [if (values.ballooncount < 6) values.adjustedtotalpumpcount_5 += values.pumpcount]
/ ontrialend = [if (values.ballooncount > 5 && values.ballooncount <11 ) values.adjustedtotalpumpcount_10 += values.pumpcount]
/ ontrialend = [if (values.ballooncount > 10 && values.ballooncount <16 ) values.adjustedtotalpumpcount_15 += values.pumpcount]
/ ontrialend = [values.adjustedaveragepumpcount = values.adjustedtotalpumpcount / values.nonexplodedballoons]
/ ontrialend = [if (values.ballooncount < 6) values.adjustedaveragepumpcount_5 = values.adjustedtotalpumpcount_5 / values.nonexplodedballoons_5]
/ ontrialend = [if (values.ballooncount > 5 && values.ballooncount <11 ) values.adjustedaveragepumpcount_10 = values.adjustedtotalpumpcount_10 / values.nonexplodedballoons_10]
/ ontrialend = [if (values.ballooncount > 10 && values.ballooncount <16 ) values.adjustedaveragepumpcount_15 = values.adjustedtotalpumpcount_15 / values.nonexplodedballoons_15]
/ response = noresponse
/ branch = [if (values.nonexplodedballoons == 1) block.emo]
/ branch = [trial.init]
/ responseinterrupt = trial
</trial>
When I run the script, nothing happens that I want, and it gives an error saying that "the element 'emo' in branch expression 'emo' is the wrong type of element".
Could you please tell me if what I want to do is possible, and if it is could you also indicate what I am doing wrong?
Thanks in advance.