﻿<?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  » Get subject number</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 09 Apr 2026 14:21:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Get subject number</title><link>https://forums.millisecond.com/Topic18611.aspx</link><description>I have an experiment where I need to create a variable that is the subjects number which is assigned at the start. I cant figure out how to call subjectnumber, any ideas?</description><pubDate>Tue, 15 Mar 2016 10:29:05 GMT</pubDate><dc:creator>nashby</dc:creator></item><item><title>RE: Get subject number</title><link>https://forums.millisecond.com/Topic18628.aspx</link><description>Yup that was it. Thanks Dave.</description><pubDate>Tue, 15 Mar 2016 10:29:05 GMT</pubDate><dc:creator>nashby</dc:creator></item><item><title>RE: Get subject number</title><link>https://forums.millisecond.com/Topic18625.aspx</link><description>No, both subject number and group number need to be known beforehand and cannot be changed by any script at runtime.&lt;br/&gt;&lt;br/&gt;The reason is that Inquisit uses these inputs for various *essential* things: Creating and naming data files, assigning participants to conditions based on either subject and/or group number etc.&lt;br/&gt;&lt;br/&gt;&amp;gt; I essentially need a payout to only register for one subject out of 60 and doing it offline isnt so helpful.&lt;br/&gt;&lt;br/&gt;Hmm, this makes me think I may have misread your question. So, all you want is to have your script *read* the subject number that was randomly generated (or otherwise passed in) before running the experiment?&lt;br/&gt;&lt;br/&gt;If so, the property that returns the subject id is script.subjectid (script.groupid for the group number, respectively). You can access that property just like any other property, perform math on it, etc. The only thing you *cannot* do is *write* to the property. It is read-only for the reasons mentioned above.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 15 Mar 2016 07:38:46 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Get subject number</title><link>https://forums.millisecond.com/Topic18624.aspx</link><description>Can I do it with the group variable? I essentially need a payout to only register for one subject out of 60 and doing it offline isnt so helpful.</description><pubDate>Tue, 15 Mar 2016 07:31:22 GMT</pubDate><dc:creator>nashby</dc:creator></item><item><title>RE: Get subject number</title><link>https://forums.millisecond.com/Topic18615.aspx</link><description>This is not something you can do *in* Inquisit. The subject number needs to be known *before* ever starting an experiment.&lt;br/&gt;</description><pubDate>Tue, 15 Mar 2016 06:00:16 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>