Branching to a questionnaire after a certain number of videos played.


Author
Message
Jrp
Jrp
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 8, Visits: 46
Hello,

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:

<trial beta5>
/stimulustimes = [1=beta5_video]
/validresponse = (57)
/branch = [surveypage.B5]
/timeout = 20000
/ ontrialend=[values.trialcount += 1]
</trial>

Here is my values function: 
<values>
/trialcount = 0
</values>

And here is my branch logic:
<block ASIDE>
/trials = [1= list.beta; 2-12=list.alpha_beta]
/branch = [if(values.trialcount == 6) block.MidASIDESUDS]
</block>

Not sure what I am fdoing wrong. As I mentioned before The counting works properly it just is not branching at the proper time.

Thank you,
jrp  

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search