﻿<?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  » Counterbalance / IF function - Surveys and Tests</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 14 Sep 2026 08:43:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Counterbalance / IF function - Surveys and Tests</title><link>https://forums.millisecond.com/Topic20919.aspx</link><description>Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am setting up an experiment which includes multiple tasks (stroop, backward digit, choice reaction etc) and three surveys.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have 32 participants split into two groups and each participant will carry out 1 each day. However to reduce the learning effect i need to create differences between the tests so i have Test A, B, C and D. I want to be able to give each participant a different experiment in a specific order as the weeks go by to be able to counterbalance (illustrated below).&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is it therefore possible to counterbalance or offset &amp;lt;exp&amp;gt; through the webplatform and how do i do this in a specific order which changes each time they login? Does it need to relate to a participant identifier (like a group no.)?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In addition i am currently producing each script separately (survey1, survey 2, survey 3, backward digit,etc) but i am struggling to combine &amp;lt;survey&amp;gt; with &amp;lt;htmlpage&amp;gt; for my preinstruction page is this not possible? I have seen that it is possible to change &amp;lt;surveys&amp;gt; to &amp;lt;block&amp;gt;, is there more detail on this?&lt;br/&gt;&lt;br/&gt;Lastly in my survey i have a &amp;lt;page&amp;gt; of questions that i only want to appear if the last question on that page has a response of "Yes"? Is there an IF or Script Logic function available?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thankyou for your help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;P.S. Fairly new to this so apologies for my terminology.&amp;nbsp;&lt;br/&gt;&lt;table border="0" cellpadding="0" cellspacing="0" width="564" style="border-collapse: collapse;width:425pt"&gt; &lt;colgroup&gt;&lt;col width="72" style="width:54pt"&gt; &lt;col width="118" span="3" style="mso-width-source:userset;mso-width-alt:3776; width:89pt"&gt; &lt;col width="138" style="mso-width-source:userset;mso-width-alt:4416;width:104pt"&gt; &lt;/colgroup&gt;&lt;tbody&gt;&lt;tr height="18" style="height:13.9pt"&gt;  &lt;td height="18" class="xl65" width="72" style="height:13.9pt;width:54pt"&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/Uploads/Images/bff794b9-1f17-4e0e-8796-27ff.png" data-download-url="https://www.millisecond.com/forums/Uploads/Images/1ebb0d5b-22d3-4350-a33c-3e08.png"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" width="118" style="border-left:none;width:89pt"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" width="118" style="border-left:none;width:89pt"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" width="118" style="border-left:none;width:89pt"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" width="138" style="border-left:none;width:104pt"&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description><pubDate>Wed, 15 Mar 2017 16:24:52 GMT</pubDate><dc:creator>smile_its_zoe</dc:creator></item><item><title>RE: Counterbalance / IF function - Surveys and Tests</title><link>https://forums.millisecond.com/Topic21108.aspx</link><description>&lt;div data-id="20922" class="if-quote-wrapper" unselectable="on" data-guid="1489620060866"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20922" 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="20922" 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="20922" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Thursday, March 2, 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-20922"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="20919" class="if-quote-wrapper" unselectable="on" data-guid="1489620060866"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20919" 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="20919" 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="20919" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;smile_its_zoe - Thursday, March 2, 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-20919"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am setting up an experiment which includes multiple tasks (stroop, backward digit, choice reaction etc) and three surveys.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have 32 participants split into two groups and each participant will carry out 1 each day. However to reduce the learning effect i need to create differences between the tests so i have Test A, B, C and D. I want to be able to give each participant a different experiment in a specific order as the weeks go by to be able to counterbalance (illustrated below).&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is it therefore possible to counterbalance or offset &amp;lt;exp&amp;gt; through the webplatform and how do i do this in a specific order which changes each time they login? Does it need to relate to a participant identifier (like a group no.)?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In addition i am currently producing each script separately (survey1, survey 2, survey 3, backward digit,etc) but i am struggling to combine &amp;lt;survey&amp;gt; with &amp;lt;htmlpage&amp;gt; for my preinstruction page is this not possible? I have seen that it is possible to change &amp;lt;surveys&amp;gt; to &amp;lt;block&amp;gt;, is there more detail on this?&lt;br/&gt;&lt;br/&gt;Lastly in my survey i have a &amp;lt;page&amp;gt; of questions that i only want to appear if the last question on that page has a response of "Yes"? Is there an IF or Script Logic function available?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thankyou for your help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;P.S. Fairly new to this so apologies for my terminology.&amp;nbsp;&lt;br/&gt;&lt;table style="border-collapse: collapse;width:425pt" width="564" cellspacing="0" cellpadding="0" border="0"&gt; &lt;colgroup&gt;&lt;col style="width:54pt" width="72"&gt; &lt;col style="mso-width-source:userset;mso-width-alt:3776; width:89pt" width="118" span="3"&gt; &lt;col style="mso-width-source:userset;mso-width-alt:4416;width:104pt" width="138"&gt; &lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height:13.9pt" height="18"&gt;  &lt;td class="xl65" style="height:13.9pt;width:54pt" width="72" height="18"&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/Uploads/Images/bff794b9-1f17-4e0e-8796-27ff.png" data-download-url="https://www.millisecond.com/forums/Uploads/Images/1ebb0d5b-22d3-4350-a33c-3e08.png"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:89pt" width="118"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:89pt" width="118"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:89pt" width="118"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:104pt" width="138"&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20919"&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 use &amp;lt;batch&amp;gt; elements to administer the different versions / orders and assign participants to those orders using the groupnumber. You can pass this info to the launch page via a query parameter and give each participant a different link for each day, corresponding to the order / version they should complete on that day.&lt;br/&gt;&lt;br/&gt;See e.g. &lt;a href="https://www.millisecond.com/forums/FindPost12606.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/FindPost12606.aspx"&gt;https://www.millisecond.com/forums/FindPost12606.aspx&lt;/a&gt;&lt;/a&gt; for a simple example.&lt;br/&gt;&lt;br/&gt;&amp;lt;survey&amp;gt; elements are special types of &amp;lt;block&amp;gt;s. To display your &amp;lt;htmlpage&amp;gt;, set up an &amp;lt;expt&amp;gt; in the script, use its /preinstructions to display the instructions and have it run the survey.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (myhtmlpage)&lt;br/&gt;/ blocks = [1=mysurvey]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage myhtmlpage&amp;gt;&lt;br/&gt;/ file = "myhtmlfile.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20922"&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;Hi Dave,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thanks for the above really helpful!! Managed to get it working :-)&lt;br/&gt;&lt;br/&gt;Thanks Again,&lt;br/&gt;&lt;br/&gt;Zoe</description><pubDate>Wed, 15 Mar 2017 16:24:52 GMT</pubDate><dc:creator>smile_its_zoe</dc:creator></item><item><title>RE: Counterbalance / IF function - Surveys and Tests</title><link>https://forums.millisecond.com/Topic20922.aspx</link><description>&lt;div data-id="20919" class="if-quote-wrapper" unselectable="on" data-guid="1488471697536"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20919" 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="20919" 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="20919" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;smile_its_zoe - Thursday, March 2, 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-20919"&gt;&lt;div class="if-quote-message-margin"&gt;Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I am setting up an experiment which includes multiple tasks (stroop, backward digit, choice reaction etc) and three surveys.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I have 32 participants split into two groups and each participant will carry out 1 each day. However to reduce the learning effect i need to create differences between the tests so i have Test A, B, C and D. I want to be able to give each participant a different experiment in a specific order as the weeks go by to be able to counterbalance (illustrated below).&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Is it therefore possible to counterbalance or offset &amp;lt;exp&amp;gt; through the webplatform and how do i do this in a specific order which changes each time they login? Does it need to relate to a participant identifier (like a group no.)?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In addition i am currently producing each script separately (survey1, survey 2, survey 3, backward digit,etc) but i am struggling to combine &amp;lt;survey&amp;gt; with &amp;lt;htmlpage&amp;gt; for my preinstruction page is this not possible? I have seen that it is possible to change &amp;lt;surveys&amp;gt; to &amp;lt;block&amp;gt;, is there more detail on this?&lt;br/&gt;&lt;br/&gt;Lastly in my survey i have a &amp;lt;page&amp;gt; of questions that i only want to appear if the last question on that page has a response of "Yes"? Is there an IF or Script Logic function available?&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Thankyou for your help.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;P.S. Fairly new to this so apologies for my terminology.&amp;nbsp;&lt;br/&gt;&lt;table style="border-collapse: collapse;width:425pt" width="564" cellspacing="0" cellpadding="0" border="0"&gt; &lt;colgroup&gt;&lt;col style="width:54pt" width="72"&gt; &lt;col style="mso-width-source:userset;mso-width-alt:3776; width:89pt" width="118" span="3"&gt; &lt;col style="mso-width-source:userset;mso-width-alt:4416;width:104pt" width="138"&gt; &lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height:13.9pt" height="18"&gt;  &lt;td class="xl65" style="height:13.9pt;width:54pt" width="72" height="18"&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/Uploads/Images/bff794b9-1f17-4e0e-8796-27ff.png" data-download-url="https://www.millisecond.com/forums/Uploads/Images/1ebb0d5b-22d3-4350-a33c-3e08.png"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:89pt" width="118"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:89pt" width="118"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:89pt" width="118"&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class="xl65" style="border-left:none;width:104pt" width="138"&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20919"&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 use &amp;lt;batch&amp;gt; elements to administer the different versions / orders and assign participants to those orders using the groupnumber. You can pass this info to the launch page via a query parameter and give each participant a different link for each day, corresponding to the order / version they should complete on that day.&lt;br/&gt;&lt;br/&gt;See e.g. &lt;a href="https://www.millisecond.com/forums/FindPost12606.aspx"&gt;https://www.millisecond.com/forums/FindPost12606.aspx&lt;/a&gt; for a simple example.&lt;br/&gt;&lt;br/&gt;&amp;lt;survey&amp;gt; elements are special types of &amp;lt;block&amp;gt;s. To display your &amp;lt;htmlpage&amp;gt;, set up an &amp;lt;expt&amp;gt; in the script, use its /preinstructions to display the instructions and have it run the survey.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ preinstructions = (myhtmlpage)&lt;br/&gt;/ blocks = [1=mysurvey]&lt;br/&gt;...&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;...&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;htmlpage myhtmlpage&amp;gt;&lt;br/&gt;/ file = "myhtmlfile.htm"&lt;br/&gt;&amp;lt;/htmlpage&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 02 Mar 2017 08:34:24 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>