﻿<?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  » Data types?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 16 Sep 2026 09:51:50 GMT</lastBuildDate><ttl>20</ttl><item><title>Data types?</title><link>https://forums.millisecond.com/Topic26027.aspx</link><description>Our IT department asked about which data type (text, integer) each variable is in the different tasks we're using. &amp;nbsp;Is there a quick place to find that, or should we look at the sample output files for that information?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Laura</description><pubDate>Thu, 08 Nov 2018 06:36:13 GMT</pubDate><dc:creator>Laura.Kwako</dc:creator></item><item><title>RE: Data types?</title><link>https://forums.millisecond.com/Topic26036.aspx</link><description>&lt;div data-id="26028" class="if-quote-wrapper" unselectable="on" data-guid="1541687766438"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26028" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26028" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, November 7, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26028"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26027" class="if-quote-wrapper" unselectable="on" data-guid="1541687766438"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26027" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26027" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26027" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Laura.Kwako - Wednesday, November 7, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26027"&gt;&lt;div class="if-quote-message-margin"&gt;Our IT department asked about which data type (text, integer) each variable is in the different tasks we're using. &amp;nbsp;Is there a quick place to find that, or should we look at the sample output files for that information?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Laura&lt;a class="if-quote-goto quote-link" href="#" data-id="26027"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Variables in Inquisit have no fixed or a-priori declared data type, i.e. whether &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ example = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;is treated as a string, integer, etc. depends on how it's used throughout the code, and the runtime will figure out the proper data type in each context on the fly. Since data output is highly configurable, there is no way to make a blanket statement about the data type of each logged variable either, this would indeed depend entirely on the script / its specific output.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Ah, got it. &amp;nbsp;Thanks for the reply. &amp;nbsp;I think we'll have to go through them individually and identify output for our programmer. &amp;nbsp;Thanks again!</description><pubDate>Thu, 08 Nov 2018 06:36:13 GMT</pubDate><dc:creator>Laura.Kwako</dc:creator></item><item><title>RE: Data types?</title><link>https://forums.millisecond.com/Topic26030.aspx</link><description>&lt;div data-id="26029" class="if-quote-wrapper" unselectable="on" data-guid="1541629796594"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26029" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26029" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26029" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;danaleighton - Wednesday, November 7, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26029"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26028" class="if-quote-wrapper" unselectable="on" data-guid="1541629796594"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26028" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26028" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, November 7, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26028"&gt;&lt;div class="if-quote-message-margin"&gt;is treated as a string, integer, etc. depends on how it's used throughout the code, and the runtime will figure out the proper data type in each context on the fly. Since data output is highly configurable, there is no way to make a blanket statement about the data type of each logged variable either, this would indeed depend entirely on the script / its specific output.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Interesting. So we could for example, do something like:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ number = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;(someattributes)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial someothertrial&amp;gt;&lt;br/&gt;/ values.number = "A"&lt;br/&gt;(someotherattributes)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;In this case, values.number in the context of sometrial would be an integer, but in the context of someothertrial, it would be a string?&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26029"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Apart from your example not being valid syntax, yes, it's perfectly possible for a given value to change it's data type on a trial-by-trial basis. E.g.&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ myvalue = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list someintegers&amp;gt;&lt;br/&gt;/ items = (10, 100, 1000, 10000)&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list somestrings&amp;gt;&lt;br/&gt;/ items = ("a cat", "a dog", "a cow", "a bird")&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial a&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.myvalue = list.someintegers.nextvalue;&lt;br/&gt;values.myvalue = values.myvalue / 2;&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial b&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;values.myvalue = list.somestrings.nextvalue;&lt;br/&gt;values.myvalue = concat(values.myvalue, " says...?")&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.myvalue%&amp;gt;")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-4 = sequence(a,b)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;data&amp;gt;&lt;br/&gt;/ columns = (date time subject group blocknum blockcode trialnum trialcode response latency values.myvalue)&lt;br/&gt;/ separatefiles = true&lt;br/&gt;&amp;lt;/data&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 07 Nov 2018 14:39:48 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Data types?</title><link>https://forums.millisecond.com/Topic26029.aspx</link><description>&lt;div data-id="26028" class="if-quote-wrapper" unselectable="on" data-guid="1541624334238"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26028" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26028" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26028" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Wednesday, November 7, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26028"&gt;&lt;div class="if-quote-message-margin"&gt;is treated as a string, integer, etc. depends on how it's used throughout the code, and the runtime will figure out the proper data type in each context on the fly. Since data output is highly configurable, there is no way to make a blanket statement about the data type of each logged variable either, this would indeed depend entirely on the script / its specific output.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26028"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Interesting. So we could for example, do something like:&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ number = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&amp;lt;trial sometrial&amp;gt;&lt;br/&gt;(someattributes)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial someothertrial&amp;gt;&lt;br/&gt;/ values.number = "A"&lt;br/&gt;(someotherattributes)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;In this case, values.number in the context of sometrial would be an integer, but in the context of someothertrial, it would be a string?&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 07 Nov 2018 13:05:44 GMT</pubDate><dc:creator>danaleighton</dc:creator></item><item><title>RE: Data types?</title><link>https://forums.millisecond.com/Topic26028.aspx</link><description>&lt;div data-id="26027" class="if-quote-wrapper" unselectable="on" data-guid="1541621926164"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26027" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26027" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26027" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Laura.Kwako - Wednesday, November 7, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26027"&gt;&lt;div class="if-quote-message-margin"&gt;Our IT department asked about which data type (text, integer) each variable is in the different tasks we're using. &amp;nbsp;Is there a quick place to find that, or should we look at the sample output files for that information?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Laura&lt;a class="if-quote-goto quote-link" href="#" data-id="26027"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Variables in Inquisit have no fixed or a-priori declared data type, i.e. whether &lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ example = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;is treated as a string, integer, etc. depends on how it's used throughout the code, and the runtime will figure out the proper data type in each context on the fly. Since data output is highly configurable, there is no way to make a blanket statement about the data type of each logged variable either, this would indeed depend entirely on the script / its specific output.&lt;br/&gt;</description><pubDate>Wed, 07 Nov 2018 12:22:22 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>