Millisecond Forums

Referring to a value on a separate task

https://forums.millisecond.com/Topic16464.aspx

By Blazer - 6/8/2015

Hi all,

I was wondering if it was possible for the conditional branching/skipping of one experiment to refer to values on a separate experiment. There are two versions of a survey based on if the participant is above or below 18 years old, and that would be determined based on what they answered in the demographics questionnaire. If I used a batch element, would it be possible to skip one of the files based on an answer from a previous file?

I know I can write the logic into the questionnaires themselves and use the include element to make it all one experiment, but for the purpose of keeping data files organized, I would like it if each questionnaire had a separate summarydata file. I'm using summarydata so that I can add in the calculated scores of each questionnaire.

I could also just ask the participant's age again at the beginning of the second questionnaire, but I want to avoid the possibility of someone giving two different ages.

It's not a big deal if I have to use the include element, but I was just curious if there was a clever way to use batch to accomplish the same thing.

Thanks!
By Dave - 6/8/2015

No, when running separate scripts via <batch> , there currently is no way to share any data between them. <include> is the way to go in your case.
By Blazer - 6/8/2015

Thanks for the quick reply!