﻿<?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  » language selection before pre-instructions</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 22:26:02 GMT</lastBuildDate><ttl>20</ttl><item><title>language selection before pre-instructions</title><link>https://forums.millisecond.com/Topic21201.aspx</link><description>Hey Dave,&amp;nbsp;&lt;br/&gt;I translated my script to different languages, but I have to put it all in one script (I can only use one web licence). However, it would be important that the language question is asked before the pre-instructions. Is that even possible? Or does that mean that I cannot use the page elements (and pre-instructions)?&lt;br/&gt;Thanks!</description><pubDate>Wed, 29 Mar 2017 07:34:15 GMT</pubDate><dc:creator>JuliaNo</dc:creator></item><item><title>RE: language selection before pre-instructions</title><link>https://forums.millisecond.com/Topic21220.aspx</link><description>&lt;div data-id="21218" class="if-quote-wrapper" unselectable="on" data-guid="1490797958041"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21218" 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="21218" 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="21218" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaNo - Wednesday, March 29, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21218"&gt;&lt;div class="if-quote-message-margin"&gt;Okay, I can't quite figure out the language division yet...&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For the instructions, I have decided to make one block for the language decision and a block for each language, which will be skipped depending on the answer. This is a bit inconvenient to do for all blocks, because I already have several and I think it would be nicer to do it within the block. So I tried the /branch attribute. However, the way I tried it, I get the error message "The element 'IMCquestion' in branch expression 'IMCquestion' is the wrong element type."&amp;nbsp;I used the information from the Inquisit Language Reference about branch attribute, but that doesn't really help right now. it's about this block:&lt;br/&gt;&lt;br/&gt;&amp;lt;block IMC&amp;gt;&lt;br/&gt;/ branch = [if (trial.languagepick.response == "OptionPortuguese" || trial.languagepick.response == "OptionPortugueseFlag") trial.IMCquestion]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;whole code:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = (255, 255, 255)&lt;br/&gt;/ fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 1)&lt;br/&gt;/ txbgcolor = (255,255,255)&lt;br/&gt;/ txcolor = (0,0,0)&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt; / fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 1)&lt;br/&gt;/ windowsize = (75%, 75%)&lt;br/&gt; / screencolor = (255, 255, 255)&lt;br/&gt; / nextkey = (" ")&lt;br/&gt; / nextlabel = " Press (Space) for next page"&lt;br/&gt; / prevlabel = "Press (Back) previous page"&lt;br/&gt; &amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial LanguagePick&amp;gt;&lt;br/&gt;/ stimulusframes = [1=languageQuestion, OptionGerman, OptionPortuguese, Optionother, OptionGermanFlag, OptionPortugueseFlag]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = ("OptionGerman", "OptionPortuguese", "Optionother", "OptionGermanFlag", "OptionPortugueseFlag")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text languageQuestion&amp;gt;&lt;br/&gt;/items = ("Before we start, please indicate your nationality.&lt;br/&gt;The experiment will then continue in your native language.")&lt;br/&gt;/position = (50,30)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text OptionGerman&amp;gt;&lt;br/&gt;/items = ("German")&lt;br/&gt;/position = (25,45)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text OptionPortuguese&amp;gt;&lt;br/&gt;/items = ("Portuguese")&lt;br/&gt;/position = (50,45)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Optionother&amp;gt;&lt;br/&gt;/items = ("Other")&lt;br/&gt;/position = (75,45)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture OptionGermanFlag&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Germany.png")&lt;br/&gt;/ position = (25, 53)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture OptionPortugueseFlag&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Portugal.png")&lt;br/&gt;/ position = (50, 53)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Languagepick&amp;gt;&lt;br/&gt;/trials = [1=LanguagePick]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page intro6D&amp;gt;&lt;br/&gt;German text&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page intro6P&amp;gt;&lt;br/&gt;Portuguese text&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block GermanInstructions&amp;gt;&lt;br/&gt;/skip = [trial.languagepick.response != "OptionGerman" &amp;amp;&amp;amp; trial.languagepick.response != "OptionGermanFlag"]&lt;br/&gt;/ postinstructions= (intro6D)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PortugueseInstructions&amp;gt;&lt;br/&gt;/skip = [trial.languagepick.response != "OptionPortuguese" &amp;amp;&amp;amp; trial.languagepick.response != "OptionPortugueseFlag"]&lt;br/&gt;/ postinstructions= (intro6P)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IMCquestion&amp;gt;&lt;br/&gt;/ stimulusframes = [1=titleIMC, questionIMC]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = ("titleIMC")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text titleIMC&amp;gt;&lt;br/&gt;/items = ("As tuas últimas férias")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text questionIMC&amp;gt;&lt;br/&gt;/items = ("click the title")&lt;br/&gt;/ position = (50%, 40%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block IMC&amp;gt;&lt;br/&gt;/ branch = [if (trial.languagepick.response == "OptionPortuguese" || trial.languagepick.response == "OptionPortugueseFlag") trial.IMCquestion]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt myexperiment&amp;gt;&lt;br/&gt;/blocks = [1=Languagepick; 2=GermanInstructions; 3=PortugueseInstructions; 4=IMC]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="21218"&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;A /branch can only happen at the same "level": &lt;br/&gt;A &amp;lt;block&amp;gt; can /branch to another &amp;lt;block&amp;gt; -- it cannot /branch to a &amp;lt;trial&amp;gt;.&lt;br/&gt;A &amp;lt;trial&amp;gt; can /branch to another &amp;lt;trial&amp;gt; -- it cannot /branch to a &amp;lt;block&amp;gt;.&lt;br/&gt;</description><pubDate>Wed, 29 Mar 2017 07:34:15 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: language selection before pre-instructions</title><link>https://forums.millisecond.com/Topic21218.aspx</link><description>Okay, I can't quite figure out the language division yet...&amp;nbsp;&lt;br/&gt;&lt;br/&gt;For the instructions, I have decided to make one block for the language decision and a block for each language, which will be skipped depending on the answer. This is a bit inconvenient to do for all blocks, because I already have several and I think it would be nicer to do it within the block. So I tried the /branch attribute. However, the way I tried it, I get the error message "The element 'IMCquestion' in branch expression 'IMCquestion' is the wrong element type."&amp;nbsp;I used the information from the Inquisit Language Reference about branch attribute, but that doesn't really help right now. it's about this block:&lt;br/&gt;&lt;br/&gt;&amp;lt;block IMC&amp;gt;&lt;br/&gt;/ branch = [if (trial.languagepick.response == "OptionPortuguese" || trial.languagepick.response == "OptionPortugueseFlag") trial.IMCquestion]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;whole code:&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ screencolor = (255, 255, 255)&lt;br/&gt;/ fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 1)&lt;br/&gt;/ txbgcolor = (255,255,255)&lt;br/&gt;/ txcolor = (0,0,0)&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt; / fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 1)&lt;br/&gt;/ windowsize = (75%, 75%)&lt;br/&gt; / screencolor = (255, 255, 255)&lt;br/&gt; / nextkey = (" ")&lt;br/&gt; / nextlabel = " Press (Space) for next page"&lt;br/&gt; / prevlabel = "Press (Back) previous page"&lt;br/&gt; &amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial LanguagePick&amp;gt;&lt;br/&gt;/ stimulusframes = [1=languageQuestion, OptionGerman, OptionPortuguese, Optionother, OptionGermanFlag, OptionPortugueseFlag]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = ("OptionGerman", "OptionPortuguese", "Optionother", "OptionGermanFlag", "OptionPortugueseFlag")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text languageQuestion&amp;gt;&lt;br/&gt;/items = ("Before we start, please indicate your nationality.&lt;br/&gt;The experiment will then continue in your native language.")&lt;br/&gt;/position = (50,30)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text OptionGerman&amp;gt;&lt;br/&gt;/items = ("German")&lt;br/&gt;/position = (25,45)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text OptionPortuguese&amp;gt;&lt;br/&gt;/items = ("Portuguese")&lt;br/&gt;/position = (50,45)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text Optionother&amp;gt;&lt;br/&gt;/items = ("Other")&lt;br/&gt;/position = (75,45)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture OptionGermanFlag&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Germany.png")&lt;br/&gt;/ position = (25, 53)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture OptionPortugueseFlag&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Portugal.png")&lt;br/&gt;/ position = (50, 53)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Languagepick&amp;gt;&lt;br/&gt;/trials = [1=LanguagePick]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page intro6D&amp;gt;&lt;br/&gt;German text&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page intro6P&amp;gt;&lt;br/&gt;Portuguese text&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block GermanInstructions&amp;gt;&lt;br/&gt;/skip = [trial.languagepick.response != "OptionGerman" &amp;amp;&amp;amp; trial.languagepick.response != "OptionGermanFlag"]&lt;br/&gt;/ postinstructions= (intro6D)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block PortugueseInstructions&amp;gt;&lt;br/&gt;/skip = [trial.languagepick.response != "OptionPortuguese" &amp;amp;&amp;amp; trial.languagepick.response != "OptionPortugueseFlag"]&lt;br/&gt;/ postinstructions= (intro6P)&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial IMCquestion&amp;gt;&lt;br/&gt;/ stimulusframes = [1=titleIMC, questionIMC]&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ validresponse = ("titleIMC")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text titleIMC&amp;gt;&lt;br/&gt;/items = ("As tuas últimas férias")&lt;br/&gt;/ position = (50%, 18%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text questionIMC&amp;gt;&lt;br/&gt;/items = ("click the title")&lt;br/&gt;/ position = (50%, 40%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block IMC&amp;gt;&lt;br/&gt;/ branch = [if (trial.languagepick.response == "OptionPortuguese" || trial.languagepick.response == "OptionPortugueseFlag") trial.IMCquestion]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;expt myexperiment&amp;gt;&lt;br/&gt;/blocks = [1=Languagepick; 2=GermanInstructions; 3=PortugueseInstructions; 4=IMC]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Wed, 29 Mar 2017 07:16:52 GMT</pubDate><dc:creator>JuliaNo</dc:creator></item><item><title>RE: language selection before pre-instructions</title><link>https://forums.millisecond.com/Topic21206.aspx</link><description>I didn't realize I can use the page elements in a block, this is very helpful. Thank you.</description><pubDate>Tue, 28 Mar 2017 09:08:17 GMT</pubDate><dc:creator>JuliaNo</dc:creator></item><item><title>RE: language selection before pre-instructions</title><link>https://forums.millisecond.com/Topic21203.aspx</link><description>&lt;div data-id="21201" class="if-quote-wrapper" unselectable="on" data-guid="1490714659867"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="21201" 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="21201" 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="21201" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaNo - Tuesday, March 28, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-21201"&gt;&lt;div class="if-quote-message-margin"&gt;Hey Dave,&amp;nbsp;&lt;br/&gt;I translated my script to different languages, but I have to put it all in one script (I can only use one web licence). However, it would be important that the language question is asked before the pre-instructions. Is that even possible? Or does that mean that I cannot use the page elements (and pre-instructions)?&lt;br/&gt;Thanks!&lt;a class="if-quote-goto quote-link" href="#" data-id="21201"&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;You can put the language selection logic in a separate &amp;lt;block&amp;gt; and then present the "pre-instructions" at the end of that &amp;lt;block&amp;gt; instead of via the &amp;lt;expt&amp;gt;. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=languageselectionblock; 2=taskblock1; ...]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;with &lt;br/&gt;&lt;br/&gt;&amp;lt;block languageselectionblock&amp;gt;&lt;br/&gt;/ postinstructions = (intro1, intro2, ...)&lt;br/&gt;....&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 28 Mar 2017 08:27:50 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>