## If then response likert scale

##### If then response likert scale
 Author Message Elmar posted 10 Years Ago ANSWER HOT Group: Forum Members Posts: 7, Visits: 15 Dear moderator,I'm working on my masterthesis and I have a slight problem. If a participants is a female she needs to hold a yellow stretchband. If the participants is male he needs to hold a red stretchband. So I need to program IF female THEN yellow and IF male THEN red. How do I program this? (I already have the likert question below)/ numpoints = 2/ anchors = [1="Male"; 2="Female"]/ stimulustimes = [1=questiongender]/ items = ("What is your gender?")/ position = (50,30) Dave posted 10 Years Ago ANSWER Group: Administrators Posts: 12K, Visits: 99K > So I need to program IF female THEN yellow and IF male THEN red. How do I program this?Please explain what that's supposed to mean exactly. In other words: What exactly do you want the script to *do* if someone responds male vs. if someone responds female? This isn't at all clear from your post. Elmar posted 10 Years Ago ANSWER Group: Forum Members Posts: 7, Visits: 15 Ok let me refrase that. If someone responds male I want text to show "please hold the red stretchband" and if someone responds female "please hold the yellow stretchband". How do I do this? Dave posted 10 Years Ago ANSWER Group: Administrators Posts: 12K, Visits: 99K / trials = [1=sequence(gender,colormessage)]/ numpoints = 2/ anchors = [1="Male"; 2="Female"]/ stimulustimes = [1=questiongender]/ items = ("What is your gender?")/ position = (50,30)/ stimulusframes = [1=messagetxt]/ validresponse = (57)/ items = ("Please hold the RED stretchband.", "please hold the YELLOW stretchband.")/ select = likert.gender.response Elmar posted 10 Years Ago ANSWER Group: Forum Members Posts: 7, Visits: 15 Thank you! You are a lifesaver : ). Elmar posted 10 Years Ago ANSWER Group: Forum Members Posts: 7, Visits: 15 Ok one more question. I want to make it a little more complicated. If someone is a male participant I want inquisit to randomly show "please hold the red stretchband" or "please hold the purple stretchband". If someone is a female participant I want inquisit to randomly show "please hold the yellow stretchband" or "please hold the green stretchband" How do I do this? Dave posted 10 Years Ago ANSWER Group: Administrators Posts: 12K, Visits: 99K / coloritem = 1/ trials = [1=sequence(gender,colormessage)]/ ontrialend = [if (likert.gender.response==1) values.coloritem = replace(1,2)]/ ontrialend = [if (likert.gender.response==2) values.coloritem = replace(3,4)]/ numpoints = 2/ anchors = [1="Male"; 2="Female"]/ stimulustimes = [1=questiongender]/ items = ("What is your gender?")/ position = (50,30)/ stimulusframes = [1=messagetxt]/ validresponse = (57)/ items = ("Please hold the RED stretchband.", "Please hold the PURPLE stretchband.""Please hold the YELLOW stretchband.", "Please hold the GREEN stretchband.")/ select = values.coloritem

#### Merge Selected

Merge into selected topic...

Merge into merge target...

Merge into a specific topic ID...

#### Login

 Login Remember Me Reset Password Resend Validation Email