﻿<?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  » Responsetrial: how to select one, and at the same time skip the other one</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 10 Sep 2026 17:15:50 GMT</lastBuildDate><ttl>20</ttl><item><title>Responsetrial: how to select one, and at the same time skip the other one</title><link>https://forums.millisecond.com/Topic23039.aspx</link><description>Hi all,&lt;br/&gt;I am trying to make a script to assign different trials (trial B / C) based on the response the user give in trial A. I have 100 trial in A, 100 in B and 100 in C, all in sequence. So for the 1st trial A, if the user choose "j", they should go to the 1st trial B, and if the choose "k", it will go to the 1st trial C. At the same time, the trial that does not get chosen should never appear again.&amp;nbsp;&lt;br/&gt;Right now, what I have is: if on the 1st trial A, they choose "j" and go to 1st B. Then in the 2nd trial A, when they choose "k", they will go to the 1st trial C instead of the 2nd C. I tried "skip", but it didn't work. How should I solve this problem? Thank you!!&lt;br/&gt;&lt;br/&gt;My script is here:&lt;br/&gt;&amp;lt;trial A&amp;gt;&lt;br/&gt;/stimulustimes= [0= T1_11, T1_12, j, k]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ validresponse = ("j","k")&lt;br/&gt;/ beginresponsetime = 0&lt;br/&gt;/ responseinterrupt = trial&lt;br/&gt;/ responsetrial == ("j", trial.B)&lt;br/&gt;/ responsetrial == ("k", trial.C)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial B&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_21, T1_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "k"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial C&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_22, T1_2_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "j"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block test_1&amp;gt;&lt;br/&gt;/ trials = [1-100=sequence(A)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;</description><pubDate>Sat, 09 Dec 2017 07:53:34 GMT</pubDate><dc:creator>wj_y</dc:creator></item><item><title /><link>https://forums.millisecond.com/Topic23043.aspx</link><description>&lt;div data-id="23042" class="if-quote-wrapper" unselectable="on"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23042" 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="23042" 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="23042" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, December 8, 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-23042"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23041" class="if-quote-wrapper" unselectable="on" data-guid="1512798255539"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23041" 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="23041" 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="23041" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wj_y - Friday, December 8, 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-23041"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23040" class="if-quote-wrapper" unselectable="on" data-guid="1512798255539"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23040" 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="23040" 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="23040" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, December 8, 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-23040"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23039" class="if-quote-wrapper" unselectable="on" data-guid="1512798255539"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23039" 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="23039" 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="23039" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wj_y - Friday, December 8, 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-23039"&gt;&lt;div class="if-quote-message-margin"&gt;Hi all,&lt;br/&gt;I am trying to make a script to assign different trials (trial B / C) based on the response the user give in trial A. I have 100 trial in A, 100 in B and 100 in C, all in sequence. So for the 1st trial A, if the user choose "j", they should go to the 1st trial B, and if the choose "k", it will go to the 1st trial C. At the same time, the trial that does not get chosen should never appear again.&amp;nbsp;&lt;br/&gt;Right now, what I have is: if on the 1st trial A, they choose "j" and go to 1st B. Then in the 2nd trial A, when they choose "k", they will go to the 1st trial C instead of the 2nd C. I tried "skip", but it didn't work. How should I solve this problem? Thank you!!&lt;br/&gt;&lt;br/&gt;My script is here:&lt;br/&gt;&amp;lt;trial A&amp;gt;&lt;br/&gt;/stimulustimes= [0= T1_11, T1_12, j, k]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ validresponse = ("j","k")&lt;br/&gt;/ beginresponsetime = 0&lt;br/&gt;/ responseinterrupt = trial&lt;br/&gt;/ responsetrial == ("j", trial.B)&lt;br/&gt;/ responsetrial == ("k", trial.C)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial B&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_21, T1_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "k"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial C&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_22, T1_2_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "j"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block test_1&amp;gt;&lt;br/&gt;/ trials = [1-100=sequence(A)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23039"&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;Sorry, I don't understand your description. Why are there 100 A trials, i.e. why do you wish to present the choice to either run a B or C trial 100 times?&lt;br/&gt;&lt;br/&gt;This doesn't make sense to me, especially in light of this sentence: "[...] the trial that does not get chosen should never appear again."&lt;br/&gt;&lt;br/&gt;So, suppose you run one A trial, and the participant presses "k". What is supposed to happen then? Is the participant supposed to then receive 100 C trials? I.e. no further A and never any B trials? Or is it something else? Please explain.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23040"&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;Thank you for your reply! And so sorry I didn't explain it clearly.&lt;br/&gt;&lt;span style="font-size: 13.3333px;"&gt;So basically, there will be 100 trials in A, 100 in B and 100 in C, A B C represent different kinds of questions (like 3 blocks), and within A/B/C will be same questions but different stimuli. And A, B, C share identical stimuli, so the stimulus in A[1] is the same as B[1] and C[1];&amp;nbsp; stimulus of A[2] is the same as B[2] and C[2], but stimulus in A[1] is different from A[2].&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;What I expect is that participant will first do a trial A, if the response is "j", they should then go to the 1st trial in B, after that, they will go back to the second trial A (different stimuli, same format). Here, if they choose "k", they should receive the corresponding trial C, which is the second trial in C. And because the participant does not choose "k" in the first trial of A, the first trial in C should not appear again. The correct procedure should be: A[1]→B[1]/C[1]→A[2]→B[2]/C[2]→A[3]→B[3]/C[3]→...→A[100]→B[100]/C[100]&lt;br/&gt;&lt;br/&gt;But my script is not working, because it will go through all the trials in B and C in an ascending sequence, but not skip the ones aren't chosen, so the stimuli aren't matching. So if participant responds "j" in the first trial of A, they receive 1st trial in B, but when they go back to the second trial of A, if they choose "k", they will go to the 1st trial in C, but not the second trial in C. It doesn't go to the corresponding trial B/C, but just the next trial B/C in sequence.&amp;nbsp;&lt;br/&gt;Does that make more sense? Thank you so much!! Let me know if that's still not clear enough!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23041"&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, thanks for the clarification -- that makes sense. Here's how you do this (I'm reducing the number of stimuli/trials to 10 in sequential order for the sake of illustration):&lt;br/&gt;&lt;br/&gt;&amp;lt;trial a&amp;gt;&lt;br/&gt;/ stimulusframes = [1=a_stimulus]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;/ validresponse = ("j","k")&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (computer.scancodetochar(trial.a.response) == "j")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.b;&lt;br/&gt;]&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (computer.scancodetochar(trial.a.response) == "k")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.c;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial b&amp;gt;&lt;br/&gt;/ stimulusframes = [1=b_stimulus]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial c&amp;gt;&lt;br/&gt;/ stimulusframes = [1=c_stimulus]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text a_stimulus&amp;gt;&lt;br/&gt;/ items = a_items&lt;br/&gt;/ select = sequence&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b_stimulus&amp;gt;&lt;br/&gt;/ items = b_items&lt;br/&gt;/ select = text.a_stimulus.currentindex&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text c_stimulus&amp;gt;&lt;br/&gt;/ items = c_items&lt;br/&gt;/ select = text.a_stimulus.currentindex&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item a_items&amp;gt;&lt;br/&gt;/ 1 = "A 01"&lt;br/&gt;/ 2 = "A 02"&lt;br/&gt;/ 3 = "A 03"&lt;br/&gt;/ 4 = "A 04"&lt;br/&gt;/ 5 = "A 05"&lt;br/&gt;/ 6 = "A 06"&lt;br/&gt;/ 7 = "A 07"&lt;br/&gt;/ 8 = "A 08"&lt;br/&gt;/ 9 = "A 09"&lt;br/&gt;/ 10 = "A 10"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item b_items&amp;gt;&lt;br/&gt;/ 1 = "B 01"&lt;br/&gt;/ 2 = "B 02"&lt;br/&gt;/ 3 = "B 03"&lt;br/&gt;/ 4 = "B 04"&lt;br/&gt;/ 5 = "B 05"&lt;br/&gt;/ 6 = "B 06"&lt;br/&gt;/ 7 = "B 07"&lt;br/&gt;/ 8 = "B 08"&lt;br/&gt;/ 9 = "B 09"&lt;br/&gt;/ 10 = "B 10"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item c_items&amp;gt;&lt;br/&gt;/ 1 = "C 01"&lt;br/&gt;/ 2 = "C 02"&lt;br/&gt;/ 3 = "C 03"&lt;br/&gt;/ 4 = "C 04"&lt;br/&gt;/ 5 = "C 05"&lt;br/&gt;/ 6 = "C 06"&lt;br/&gt;/ 7 = "C 07"&lt;br/&gt;/ 8 = "C 08"&lt;br/&gt;/ 9 = "C 09"&lt;br/&gt;/ 10 = "C 10"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block exampleblock&amp;gt;&lt;br/&gt;/ trials = [1-10 = a]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23042"&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;Thank you so much!! That works perfectly!&lt;br/&gt;Have a good weekend!</description><pubDate>Sat, 09 Dec 2017 07:53:34 GMT</pubDate><dc:creator>wj_y</dc:creator></item><item><title>RE: Responsetrial: how to select one, and at the same time skip the other one</title><link>https://forums.millisecond.com/Topic23042.aspx</link><description>&lt;div data-id="23041" class="if-quote-wrapper" unselectable="on" data-guid="1512798255539"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23041" 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="23041" 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="23041" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wj_y - Friday, December 8, 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-23041"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23040" class="if-quote-wrapper" unselectable="on" data-guid="1512798255539"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23040" 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="23040" 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="23040" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, December 8, 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-23040"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23039" class="if-quote-wrapper" unselectable="on" data-guid="1512798255539"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23039" 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="23039" 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="23039" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wj_y - Friday, December 8, 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-23039"&gt;&lt;div class="if-quote-message-margin"&gt;Hi all,&lt;br/&gt;I am trying to make a script to assign different trials (trial B / C) based on the response the user give in trial A. I have 100 trial in A, 100 in B and 100 in C, all in sequence. So for the 1st trial A, if the user choose "j", they should go to the 1st trial B, and if the choose "k", it will go to the 1st trial C. At the same time, the trial that does not get chosen should never appear again.&amp;nbsp;&lt;br/&gt;Right now, what I have is: if on the 1st trial A, they choose "j" and go to 1st B. Then in the 2nd trial A, when they choose "k", they will go to the 1st trial C instead of the 2nd C. I tried "skip", but it didn't work. How should I solve this problem? Thank you!!&lt;br/&gt;&lt;br/&gt;My script is here:&lt;br/&gt;&amp;lt;trial A&amp;gt;&lt;br/&gt;/stimulustimes= [0= T1_11, T1_12, j, k]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ validresponse = ("j","k")&lt;br/&gt;/ beginresponsetime = 0&lt;br/&gt;/ responseinterrupt = trial&lt;br/&gt;/ responsetrial == ("j", trial.B)&lt;br/&gt;/ responsetrial == ("k", trial.C)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial B&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_21, T1_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "k"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial C&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_22, T1_2_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "j"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block test_1&amp;gt;&lt;br/&gt;/ trials = [1-100=sequence(A)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23039"&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;Sorry, I don't understand your description. Why are there 100 A trials, i.e. why do you wish to present the choice to either run a B or C trial 100 times?&lt;br/&gt;&lt;br/&gt;This doesn't make sense to me, especially in light of this sentence: "[...] the trial that does not get chosen should never appear again."&lt;br/&gt;&lt;br/&gt;So, suppose you run one A trial, and the participant presses "k". What is supposed to happen then? Is the participant supposed to then receive 100 C trials? I.e. no further A and never any B trials? Or is it something else? Please explain.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23040"&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;Thank you for your reply! And so sorry I didn't explain it clearly.&lt;br/&gt;&lt;span style="font-size: 13.3333px;"&gt;So basically, there will be 100 trials in A, 100 in B and 100 in C, A B C represent different kinds of questions (like 3 blocks), and within A/B/C will be same questions but different stimuli. And A, B, C share identical stimuli, so the stimulus in A[1] is the same as B[1] and C[1];&amp;nbsp; stimulus of A[2] is the same as B[2] and C[2], but stimulus in A[1] is different from A[2].&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;What I expect is that participant will first do a trial A, if the response is "j", they should then go to the 1st trial in B, after that, they will go back to the second trial A (different stimuli, same format). Here, if they choose "k", they should receive the corresponding trial C, which is the second trial in C. And because the participant does not choose "k" in the first trial of A, the first trial in C should not appear again. The correct procedure should be: A[1]→B[1]/C[1]→A[2]→B[2]/C[2]→A[3]→B[3]/C[3]→...→A[100]→B[100]/C[100]&lt;br/&gt;&lt;br/&gt;But my script is not working, because it will go through all the trials in B and C in an ascending sequence, but not skip the ones aren't chosen, so the stimuli aren't matching. So if participant responds "j" in the first trial of A, they receive 1st trial in B, but when they go back to the second trial of A, if they choose "k", they will go to the 1st trial in C, but not the second trial in C. It doesn't go to the corresponding trial B/C, but just the next trial B/C in sequence.&amp;nbsp;&lt;br/&gt;Does that make more sense? Thank you so much!! Let me know if that's still not clear enough!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23041"&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, thanks for the clarification -- that makes sense. Here's how you do this (I'm reducing the number of stimuli/trials to 10 in sequential order for the sake of illustration):&lt;br/&gt;&lt;br/&gt;&amp;lt;trial a&amp;gt;&lt;br/&gt;/ stimulusframes = [1=a_stimulus]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;/ validresponse = ("j","k")&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (computer.scancodetochar(trial.a.response) == "j")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.b;&lt;br/&gt;]&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (computer.scancodetochar(trial.a.response) == "k")&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trial.c;&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial b&amp;gt;&lt;br/&gt;/ stimulusframes = [1=b_stimulus]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial c&amp;gt;&lt;br/&gt;/ stimulusframes = [1=c_stimulus]&lt;br/&gt;/ timeout = 5000&lt;br/&gt;/ validresponse = (0)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text a_stimulus&amp;gt;&lt;br/&gt;/ items = a_items&lt;br/&gt;/ select = sequence&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b_stimulus&amp;gt;&lt;br/&gt;/ items = b_items&lt;br/&gt;/ select = text.a_stimulus.currentindex&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text c_stimulus&amp;gt;&lt;br/&gt;/ items = c_items&lt;br/&gt;/ select = text.a_stimulus.currentindex&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item a_items&amp;gt;&lt;br/&gt;/ 1 = "A 01"&lt;br/&gt;/ 2 = "A 02"&lt;br/&gt;/ 3 = "A 03"&lt;br/&gt;/ 4 = "A 04"&lt;br/&gt;/ 5 = "A 05"&lt;br/&gt;/ 6 = "A 06"&lt;br/&gt;/ 7 = "A 07"&lt;br/&gt;/ 8 = "A 08"&lt;br/&gt;/ 9 = "A 09"&lt;br/&gt;/ 10 = "A 10"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item b_items&amp;gt;&lt;br/&gt;/ 1 = "B 01"&lt;br/&gt;/ 2 = "B 02"&lt;br/&gt;/ 3 = "B 03"&lt;br/&gt;/ 4 = "B 04"&lt;br/&gt;/ 5 = "B 05"&lt;br/&gt;/ 6 = "B 06"&lt;br/&gt;/ 7 = "B 07"&lt;br/&gt;/ 8 = "B 08"&lt;br/&gt;/ 9 = "B 09"&lt;br/&gt;/ 10 = "B 10"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item c_items&amp;gt;&lt;br/&gt;/ 1 = "C 01"&lt;br/&gt;/ 2 = "C 02"&lt;br/&gt;/ 3 = "C 03"&lt;br/&gt;/ 4 = "C 04"&lt;br/&gt;/ 5 = "C 05"&lt;br/&gt;/ 6 = "C 06"&lt;br/&gt;/ 7 = "C 07"&lt;br/&gt;/ 8 = "C 08"&lt;br/&gt;/ 9 = "C 09"&lt;br/&gt;/ 10 = "C 10"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block exampleblock&amp;gt;&lt;br/&gt;/ trials = [1-10 = a]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 08 Dec 2017 21:53:20 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Responsetrial: how to select one, and at the same time skip the other one</title><link>https://forums.millisecond.com/Topic23041.aspx</link><description>&lt;div data-id="23040" class="if-quote-wrapper" unselectable="on" data-guid="1512796811538"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23040" 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="23040" 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="23040" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Friday, December 8, 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-23040"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23039" class="if-quote-wrapper" unselectable="on" data-guid="1512796811538"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23039" 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="23039" 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="23039" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wj_y - Friday, December 8, 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-23039"&gt;&lt;div class="if-quote-message-margin"&gt;Hi all,&lt;br/&gt;I am trying to make a script to assign different trials (trial B / C) based on the response the user give in trial A. I have 100 trial in A, 100 in B and 100 in C, all in sequence. So for the 1st trial A, if the user choose "j", they should go to the 1st trial B, and if the choose "k", it will go to the 1st trial C. At the same time, the trial that does not get chosen should never appear again.&amp;nbsp;&lt;br/&gt;Right now, what I have is: if on the 1st trial A, they choose "j" and go to 1st B. Then in the 2nd trial A, when they choose "k", they will go to the 1st trial C instead of the 2nd C. I tried "skip", but it didn't work. How should I solve this problem? Thank you!!&lt;br/&gt;&lt;br/&gt;My script is here:&lt;br/&gt;&amp;lt;trial A&amp;gt;&lt;br/&gt;/stimulustimes= [0= T1_11, T1_12, j, k]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ validresponse = ("j","k")&lt;br/&gt;/ beginresponsetime = 0&lt;br/&gt;/ responseinterrupt = trial&lt;br/&gt;/ responsetrial == ("j", trial.B)&lt;br/&gt;/ responsetrial == ("k", trial.C)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial B&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_21, T1_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "k"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial C&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_22, T1_2_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "j"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block test_1&amp;gt;&lt;br/&gt;/ trials = [1-100=sequence(A)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23039"&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;Sorry, I don't understand your description. Why are there 100 A trials, i.e. why do you wish to present the choice to either run a B or C trial 100 times?&lt;br/&gt;&lt;br/&gt;This doesn't make sense to me, especially in light of this sentence: "[...] the trial that does not get chosen should never appear again."&lt;br/&gt;&lt;br/&gt;So, suppose you run one A trial, and the participant presses "k". What is supposed to happen then? Is the participant supposed to then receive 100 C trials? I.e. no further A and never any B trials? Or is it something else? Please explain.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23040"&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;Thank you for your reply! And so sorry I didn't explain it clearly.&lt;br/&gt;&lt;span style="font-size: 13.3333px;"&gt;So basically, there will be 100 trials in A, 100 in B and 100 in C, A B C represent different kinds of questions (like 3 blocks), and within A/B/C will be same questions but different stimuli. And A, B, C share identical stimuli, so the stimulus in A[1] is the same as B[1] and C[1];&amp;nbsp; stimulus of A[2] is the same as B[2] and C[2], but stimulus in A[1] is different from A[2].&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;What I expect is that participant will first do a trial A, if the response is "j", they should then go to the 1st trial in B, after that, they will go back to the second trial A (different stimuli, same format). Here, if they choose "k", they should receive the corresponding trial C, which is the second trial in C. And because the participant does not choose "k" in the first trial of A, the first trial in C should not appear again. The correct procedure should be: A[1]→B[1]/C[1]→A[2]→B[2]/C[2]→A[3]→B[3]/C[3]→...→A[100]→B[100]/C[100]&lt;br/&gt;&lt;br/&gt;But my script is not working, because it will go through all the trials in B and C in an ascending sequence, but not skip the ones aren't chosen, so the stimuli aren't matching. So if participant responds "j" in the first trial of A, they receive 1st trial in B, but when they go back to the second trial of A, if they choose "k", they will go to the 1st trial in C, but not the second trial in C. It doesn't go to the corresponding trial B/C, but just the next trial B/C in sequence.&amp;nbsp;&lt;br/&gt;Does that make more sense? Thank you so much!! Let me know if that's still not clear enough!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Fri, 08 Dec 2017 21:39:53 GMT</pubDate><dc:creator>wj_y</dc:creator></item><item><title>RE: Responsetrial: how to select one, and at the same time skip the other one</title><link>https://forums.millisecond.com/Topic23040.aspx</link><description>&lt;div data-id="23039" class="if-quote-wrapper" unselectable="on" data-guid="1512796376957"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23039" 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="23039" 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="23039" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;wj_y - Friday, December 8, 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-23039"&gt;&lt;div class="if-quote-message-margin"&gt;Hi all,&lt;br/&gt;I am trying to make a script to assign different trials (trial B / C) based on the response the user give in trial A. I have 100 trial in A, 100 in B and 100 in C, all in sequence. So for the 1st trial A, if the user choose "j", they should go to the 1st trial B, and if the choose "k", it will go to the 1st trial C. At the same time, the trial that does not get chosen should never appear again.&amp;nbsp;&lt;br/&gt;Right now, what I have is: if on the 1st trial A, they choose "j" and go to 1st B. Then in the 2nd trial A, when they choose "k", they will go to the 1st trial C instead of the 2nd C. I tried "skip", but it didn't work. How should I solve this problem? Thank you!!&lt;br/&gt;&lt;br/&gt;My script is here:&lt;br/&gt;&amp;lt;trial A&amp;gt;&lt;br/&gt;/stimulustimes= [0= T1_11, T1_12, j, k]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ validresponse = ("j","k")&lt;br/&gt;/ beginresponsetime = 0&lt;br/&gt;/ responseinterrupt = trial&lt;br/&gt;/ responsetrial == ("j", trial.B)&lt;br/&gt;/ responsetrial == ("k", trial.C)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial B&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_21, T1_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "k"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial C&amp;gt;&lt;br/&gt;/stimulustimes= [0=T1_22, T1_2_Q]&lt;br/&gt;/timeout = 5000&lt;br/&gt;/ skip = [trial.A.response == "j"]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block test_1&amp;gt;&lt;br/&gt;/ trials = [1-100=sequence(A)]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23039"&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;Sorry, I don't understand your description. Why are there 100 A trials, i.e. why do you wish to present the choice to either run a B or C trial 100 times?&lt;br/&gt;&lt;br/&gt;This doesn't make sense to me, especially in light of this sentence: "[...] the trial that does not get chosen should never appear again."&lt;br/&gt;&lt;br/&gt;So, suppose you run one A trial, and the participant presses "k". What is supposed to happen then? Is the participant supposed to then receive 100 C trials? I.e. no further A and never any B trials? Or is it something else? Please explain.&lt;br/&gt;</description><pubDate>Fri, 08 Dec 2017 21:18:51 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>