﻿<?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 5  » web id questions</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 21 Sep 2026 08:30:55 GMT</lastBuildDate><ttl>20</ttl><item><title>web id questions</title><link>https://forums.millisecond.com/Topic19217.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I have a couple questions regarding ids for web experiments. I couldn't find details about sequential id generation. I assume it starts from 1 and is based on starting but not necessarily completing the experiment? That is, if 3 people start the experiment before anyone completes it, will they be assigned 1, 2 and 3? Also, is there any way to have that sequence restart within the same registered web script (e.g., by updating it)? Essentially, I'd like to have subject ids 1-8 repeat multiple times. Is the only way to so through a custom javascript? Or can you set random selection within some range?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Sarah&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 09 Jun 2016 14:37:18 GMT</pubDate><dc:creator>sdubrow</dc:creator></item><item><title>RE: web id questions</title><link>https://forums.millisecond.com/Topic19225.aspx</link><description>Thanks for the clarification. The solution would indeed be to perform a simple computation on the subject number, specifically using a bit of modulo arithmetic. With 8 conditions, you'd do:&lt;br/&gt;&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition = [mod(script.subjectid,8) == 1]&lt;br/&gt;/ file = "/Users/dubrow/Documents/conflictBound/list1.txt"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;include&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ precondition = [mod(script.subjectid,8) == 2]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ file = "/Users/dubrow/Documents/conflictBound/list2.txt"&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;...&lt;br/&gt;&lt;/span&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;include&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ precondition = [mod(script.subjectid,8) == 0]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ file = "/Users/dubrow/Documents/conflictBound/list8.txt"&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;&lt;/span&gt;</description><pubDate>Thu, 09 Jun 2016 14:37:18 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: web id questions</title><link>https://forums.millisecond.com/Topic19223.aspx</link><description>Because I have 8 unique sequences of stimuli. For the sake of counterbalancing I need n*8 number of subjects such that my data include even numbers of each specific sequence.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;for each subject, i use the following to load my sequence:&lt;br/&gt;&lt;br/&gt;&amp;lt;include&amp;gt;&lt;br/&gt;/ precondition = [script.subjectid == 1]&lt;br/&gt;/ file = "/Users/dubrow/Documents/conflictBound/list1.txt"&lt;br/&gt;&amp;lt;/include&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;include&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ precondition = [script.subjectid == 2]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ file = "/Users/dubrow/Documents/conflictBound/list2.txt"&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;/include&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;etc&lt;br/&gt;&lt;br/&gt;Perhaps the point you are getting at is that I could do a computation on the subjectid that could solve this? &lt;br/&gt;&lt;br/&gt;Would that be script.subjectid-floor(script.subjectid/8)*8 ?</description><pubDate>Thu, 09 Jun 2016 10:26:38 GMT</pubDate><dc:creator>sdubrow</dc:creator></item><item><title>RE: web id questions</title><link>https://forums.millisecond.com/Topic19219.aspx</link><description>Sequential IDs start at one and increase by one. They have no upper limit. An ID will be given out every time someone visits the experiment's launch page. It is not possible to restrict the range of IDs with either sequential or random selection.&lt;br/&gt;&lt;br/&gt;To force a restart of the sequence, you would have to take down the respective web experiment entirely and then re-register it (under a different name).&lt;br/&gt;&lt;br/&gt;Beyond that it is not clear to me why you would want only IDs 1-8 repeating. Please explain.&lt;br/&gt;</description><pubDate>Thu, 09 Jun 2016 08:24:53 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>