﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » 'preconditions' and 'include' in an online script?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 28 Sep 2026 04:37:25 GMT</lastBuildDate><ttl>20</ttl><item><title>'preconditions' and 'include' in an online script?</title><link>https://forums.millisecond.com/Topic19489.aspx</link><description>Dear friends, can you use 'preconditions' and 'include' in an online script?&lt;br/&gt;&lt;br/&gt;Would something like the code below be possible for the web-based version?&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;-------------------------------&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition=[computer.platform == "windows"]&lt;br/&gt;/ file="wmv_videos.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition=[computer.platform == "mac"]&lt;br/&gt;/ file="mov_videos.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 09 Aug 2016 15:02:56 GMT</pubDate><dc:creator>plush</dc:creator></item><item><title>RE: 'preconditions' and 'include' in an online script?</title><link>https://forums.millisecond.com/Topic19501.aspx</link><description>No, &amp;lt;batch&amp;gt; serves a different purpose than &amp;lt;include&amp;gt;. You do not need any &amp;lt;batch&amp;gt; elements to administer different video formats depending on the device's platform. See &lt;a href="https://www.millisecond.com/forums/FindPost9931.aspx"&gt;https://www.millisecond.com/forums/FindPost9931.aspx&lt;/a&gt; for a simple example. This works on the web as well. You need to register the "main" script as your active web script. In the next step, you need to upload the two to-be-included scripts as well as the videos in both formats.&lt;br/&gt;</description><pubDate>Tue, 09 Aug 2016 15:02:56 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: 'preconditions' and 'include' in an online script?</title><link>https://forums.millisecond.com/Topic19500.aspx</link><description>That's good to know. Do you have any advice on how to approach the example-issue for the web-based experiment, with the .mov and .wmv files? &lt;br/&gt;-----------------------&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition=[computer.platform == "windows"]&lt;br/&gt;/ file="wmv_videos.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition=[computer.platform == "mac"]&lt;br/&gt;/ file="mov_videos.iqx"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;-----------------------&lt;br/&gt;&lt;br/&gt;Would you upload a batch-script as a primary script and then upload the .wmv and .mov scripts as additional files?&lt;br/&gt;&lt;br/&gt;Thx!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 09 Aug 2016 12:58:16 GMT</pubDate><dc:creator>plush</dc:creator></item><item><title>RE: 'preconditions' and 'include' in an online script?</title><link>https://forums.millisecond.com/Topic19493.aspx</link><description>Yes, conditional &amp;lt;include&amp;gt; elements work on the web just like they work in Inquisit Lab. You can use them just fine in your online experiments.&lt;br/&gt;</description><pubDate>Mon, 08 Aug 2016 16:55:08 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>