So I have been working on using values, in particular the trial count function, to branch after a certain number of videos played. I have gotten the trial count to properly count the videos, but it still is not branching on the 6th video like I would like it to.
Here is an example of how I have it counting:
/stimulustimes = [1=beta5_video]
/validresponse = (57)
/branch = [surveypage.B5]
/timeout = 20000
/ ontrialend=[values.trialcount += 1]
Here is my values function:
/trialcount = 0
And here is my branch logic:
/trials = [1= list.beta; 2-12=list.alpha_beta]
/branch = [if(values.trialcount == 6) block.MidASIDESUDS]
Not sure what I am fdoing wrong. As I mentioned before The counting works properly it just is not branching at the proper time.