﻿<?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  » Skip function not working</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 29 Apr 2026 03:30:45 GMT</lastBuildDate><ttl>20</ttl><item><title>Skip function not working</title><link>https://forums.millisecond.com/Topic18471.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I'm trying to get a Risk Assessment as an eligibility screening for the experiment. If participants answer the first question with "neither down nor good", "good", or "very good", then I would like to skip the next question ("In the last two weeks, have you felt so down that you have had plans of ending your life?").&lt;br/&gt;&lt;br/&gt;If for the second question, they answer "yes", I would like the experiment to be aborted, with the caption "This is the end of the experiment. Please call your experimenter".&lt;br/&gt;&lt;br/&gt;The script was working but now it seems to not be working at all and only the first question runs.&amp;nbsp;&lt;br/&gt;I'm not sure what I'm doing wrong. Could you please have a look and suggest how I could fix this?&lt;br/&gt;&lt;br/&gt;---------------- Script ----------------------&lt;br/&gt;&lt;br/&gt;&amp;lt;text moodrating&amp;gt;&lt;br/&gt;/items = ("How has your mood been these last two weeks?")&lt;br/&gt;/fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/halign = center&lt;br/&gt;/position = (30%, 30%)&lt;br/&gt;/color = (15, 190, 253)&lt;br/&gt;/txcolor = (black)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;likert mood&amp;gt;&lt;br/&gt;/stimulusframes = [1=moodrating]&lt;br/&gt;/anchors = [1 = "very down/bad"; 2 = "down/bad"; 3 = "neither down nor good"; 4 = "good"; 5 = "very good"]&lt;br/&gt;&amp;lt;/likert&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons suicide&amp;gt;&lt;br/&gt;/caption = "In the last two weeks, have you felt so down that you have had plans of ending your own life?"&lt;br/&gt;/options = ("Yes", "No")&lt;br/&gt;/required = true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage suicideax&amp;gt;&lt;br/&gt;/questions = [1=suicide]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/backbuttonposition = (10%, 90%)&lt;br/&gt;/nextbuttonposition = (90%, 90%)&lt;br/&gt;/skip = [radiobuttons.suicide.response == "neither down nor good"; "good"; "very good"]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage callexperimenter&amp;gt;&lt;br/&gt;/caption = "This is the end of the experiment. Please call your experimenter"&lt;br/&gt;/nextbuttonposition = (90%, 90%)&lt;br/&gt;/finishlabel = "Exit"&lt;br/&gt;/skip = [surveypage.suicideax.response == "No"]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block risk&amp;gt;&lt;br/&gt;/trials = [1 = mood; 2= suicideax; 3= callexperimenter]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;---------------------------------------------------&lt;br/&gt;&lt;br/&gt;Thank you!</description><pubDate>Wed, 02 Mar 2016 14:04:34 GMT</pubDate><dc:creator>SuzannaA</dc:creator></item><item><title>RE: Skip function not working</title><link>https://forums.millisecond.com/Topic18474.aspx</link><description>Thank you!</description><pubDate>Wed, 02 Mar 2016 14:04:34 GMT</pubDate><dc:creator>SuzannaA</dc:creator></item><item><title>RE: Skip function not working</title><link>https://forums.millisecond.com/Topic18472.aspx</link><description>&lt;surveypage suicideax=""&gt;---------------- Script ----------------------&lt;br/&gt;&lt;br/&gt;&amp;lt;text moodrating&amp;gt;&lt;br/&gt;/items = ("How has your mood been these last two weeks?")&lt;br/&gt;/fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)&lt;br/&gt;/halign = center&lt;br/&gt;/position = (30%, 30%)&lt;br/&gt;/color = (15, 190, 253)&lt;br/&gt;/txcolor = (black)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;likert mood&amp;gt;&lt;br/&gt;/stimulusframes = [1=moodrating]&lt;br/&gt;/anchors = [1 = "very down/bad"; 2 = "down/bad"; 3 = "neither down nor good"; 4 = "good"; 5 = "very good"]&lt;br/&gt;&amp;lt;/likert&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons suicide&amp;gt;&lt;br/&gt;/caption = "In the last two weeks, have you felt so down that you have had plans of ending your own life?"&lt;br/&gt;/options = ("Yes", "No")&lt;br/&gt;/required = true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage suicideax&amp;gt;&lt;br/&gt;/questions = [1=suicide]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/backbuttonposition = (10%, 90%)&lt;br/&gt;/nextbuttonposition = (90%, 90%)&lt;br/&gt;&lt;strong&gt;/ skip = [likert.mood.response == "3" || likert.mood.response == "4" || likert.mood.response == "5"]&lt;br/&gt;/ branch = [if (radiobuttons.suicide.response == "Yes") surveypage.callexperimenter ]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage callexperimenter&amp;gt;&lt;br/&gt;&lt;strong&gt;/ ontrialend = [script.abort(); ]&lt;/strong&gt;&lt;br/&gt;/caption = "This is the end of the experiment. Please call your experimenter"&lt;br/&gt;/nextbuttonposition = (90%, 90%)&lt;br/&gt;/finishlabel = "Exit"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block risk&amp;gt;&lt;br/&gt;&lt;strong&gt;/trials = [1 = mood; 2= suicideax]&lt;/strong&gt;&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;---------------------------------------------------&lt;br/&gt;&lt;br/&gt;should do what you need (changes in bold). The /ontrialend in &amp;lt;surveypage callexperimenter&amp;gt; is optional at present, but is needed to terminate the entire study in case other blocks, etc. would normally follow &amp;lt;block risk&amp;gt;.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;/surveypage&gt;</description><pubDate>Tue, 01 Mar 2016 19:30:46 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>