Using the Include element to conditionally select vids based on OS


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K

it seems that <include> and <batch> do basically the same thing except that one runs the files randomly, and the other sequentiall


No. They are entirely different beasts with different purposes and use cases.


<batch> runs separate scripts in a given sequence. <include> parses contents residing in an external file into a given script.


The <include> elements must reside in the scripts that run the videos, a syntax example covering this exact case can be found in the documentation for the <include> element:


<include>
/ precondition=[computer.platform ==
"windows"]
/
file="wmv_videos.iqx"
</include>

<include>
/
precondition=[computer.platform == "mac"]
/
file="mov_videos.iqx"
</include>


Regards,


~Dave


LibbyLu43
LibbyLu43
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: 22, Visits: 1

Hello again Dave. Hope all is well.


I'm wondering if you could offer some help on how to use the include element when I'm already running my study through a batch file. I've read the language reference, and from my conceptual understanding it seems that <include> and <batch> do basically the same thing except that one runs the files randomly, and the other sequentially (I'm sure there are other difs too). Anyways, in my study, I have videos, and want to conditionally select based on the participants' OS so that both mac and windows users can participate. I have mov and wmv video files, but am not sure where the include elements should go. Below is my batch file since my best guess would be that it would somehow go in there?


Thanks Dave!


-Libby


<batch GroupHN>
/ subjects = (1 of 5)
/ file = "Consent.iqx"
/ file = "SoundTest.iqx"
/ file = "Demographics.iqx"
/ file = "Emotions1.iqx"
/ file = "Stroop1.iqx"
/ file = "HNvideo.iqx"
/ file = "Emotions2.iqx"
/ file = "Stroop2.iqx"
/ file = "Part2.iqx"
</batch>

<batch GroupLP>
/ subjects = (2 of 5)
/ file = "Consent.iqx"
/ file = "SoundTest.iqx"
/ file = "Demographics.iqx"
/ file = "Emotions1.iqx"
/ file = "Stroop1.iqx"
/ file = "LPvideo.iqx"
/ file = "Emotions2.iqx"
/ file = "Stroop2.iqx"
/ file = "Part2.iqx"
</batch>

<batch GroupLN>
/ subjects = (3 of 5)
/ file = "Consent.iqx"
/ file = "SoundTest.iqx"
/ file = "Demographics.iqx"
/ file = "Emotions1.iqx"
/ file = "Stroop1.iqx"
/ file = "LNvideo.iqx"
/ file = "Emotions2.iqx"
/ file = "Stroop2.iqx"
/ file = "Part2.iqx"
</batch>

<batch GroupHP>
/ subjects = (4 of 5)
/ file = "Consent.iqx"
/ file = "SoundTest.iqx"
/ file = "Demographics.iqx"
/ file = "Emotions1.iqx"
/ file = "Stroop1.iqx"
/ file = "HPvideo.iqx"
/ file = "Emotions2.iqx"
/ file = "Stroop2.iqx"
/ file = "Part2.iqx"
</batch>

<batch GroupNeutral>
/ subjects = (5 of 5)
/ file = "Consent.iqx"
/ file = "SoundTest.iqx"
/ file = "Demographics.iqx"
/ file = "Emotions1.iqx"
/ file = "Stroop1.iqx"
/ file = "Neutralvideo.iqx"
/ file = "Emotions2.iqx"
/ file = "Stroop2.iqx"
/ file = "Part2.iqx"
</batch>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search