Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
RE: 'preconditions' and 'include' in an online script?
'preconditions' and 'include' in an online script?
Post Reply
Like
38
'preconditions' and 'include' in an online script?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
plush
plush
posted 8 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 57,
Visits: 96
Dear friends, can you use 'preconditions' and 'include' in an online script?
Would something like the code below be possible for the web-based version?
Thanks.
-------------------------------
<include>
/ precondition=[computer.platform == "windows"]
/ file="wmv_videos.iqx"
</include>
<include>
/ precondition=[computer.platform == "mac"]
/ file="mov_videos.iqx"
</include>
Reply
Like
38
Dave
Dave
posted 8 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
Yes, conditional <include> elements work on the web just like they work in Inquisit Lab. You can use them just fine in your online experiments.
Reply
Like
35
plush
plush
posted 8 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 57,
Visits: 96
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?
-----------------------
<include>
/ precondition=[computer.platform == "windows"]
/ file="wmv_videos.iqx"
</include>
<include>
/ precondition=[computer.platform == "mac"]
/ file="mov_videos.iqx"
</include>
-----------------------
Would you upload a batch-script as a primary script and then upload the .wmv and .mov scripts as additional files?
Thx!
Reply
Like
36
Dave
Dave
posted 8 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
No, <batch> serves a different purpose than <include>. You do not need any <batch> elements to administer different video formats depending on the device's platform. See
https://www.millisecond.com/forums/FindPost9931.aspx
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.
Reply
Like
36
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
38
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search