Can't get skip function to work properly


Author
Message
JDYates
JDYates
Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)
Group: Forum Members
Posts: 18, Visits: 47
Hi, 

I'm desigining a task where I want participants to make a choice of 2 preferred drinks (one alcohol and one soft drink) then they see those 2 chosen images followed by a slider scale. I have most of it I just can't seem to get the skip to work and all the images show regardless of choice. I'm probably making a stupid mistake and have gone about it a longer way than needed. I've attached my script below

<radiobuttons q1>
/caption = "1. Please choose your preferred alcoholic drink?"
/ options = ("Beer", "Cider", "Whisky", "Wine", "Gin")

/required = true
/orientation =vertical
</radiobuttons>

<radiobuttons q2>
/caption = "2. Please choose your preferred soft drink?"
/ options = ("Water", "Coke", "Juice", "Coffee", "Tea")
/required = true
/orientation = vertical
</radiobuttons>



<surveypage drink_choice>

/questions = [1 = q1, q2]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>



<surveypage drink_vas>
/ questions = [1=drink_vas]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<slider drink_vas>
/ caption = "How much do you value the first drink over the second drink?"
/ range = (-100,100)
/ labels = ("Negatively", "Positively")
/ slidersize = (50%, 20%)
/ position = (25%, 40%)
/ required = true
</slider>


</instruct>
<text fixation>
/ items = ("+")
/ erase = false
</text>

<picture beer>
/ items = beer
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item beer>
/1 = "beer.jpg"
</item>

<picture cider>
/ items = cider
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item cider>
/1 = "cider.jpg"
</item>

<picture whisky>
/ items = whisky
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item whisky>
/1 = "whisky.jpg"
</item>

<picture wine>
/ items = wine
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item wine>
/1 = "wine.jpg"
</item>

<picture gin>
/ items = gin
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item gin>
/1 = "gin.jpg"
</item>

<picture water>
/ items = water
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item water>
/1 = "water.jpg"
</item>

<picture coke>
/ items = coke
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coke>
/1 = "coke.jpg"
</item>

<picture juice>
/ items = juice
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item juice>
/1 = "juice.jpg"
</item>

<picture coffee>
/ items = coffee
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coffee>
/1 = "coffee.jpg"
</item>

<picture tea>
/ items = tea
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item tea>
/1 = "tea.jpg"
</item>



<trial beer_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial beer_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial cider_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial cider_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial whisky_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial whisky_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial wine_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial wine_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial gin_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial gin_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]

</trial>

<block 1>
/trials= [
    
1=drink_choice]

</block>

<block 2>
/ trials = [
    1 = beer_water , beer_coffee, beer_coke, beer_juice, beer_tea,
    cider_coffee, cider_coke, cider_juice, cider_tea , cider_water,
    gin_coffee, gin_coke, gin_juice, gin_tea, gin_water,
    whisky_coffee, whisky_coke, whisky_juice, whisky_tea, whisky_water,
    wine_coffee, wine_coke, wine_juice, wine_tea, wine_water
    
]

</block>

<block 3>
/trials=[
    
1=drink_vas]
</block>

<expt >
/ blocks = [1 = block.1; 2 = block.2; 3=block.3]

</expt>

any help would be appreciated,

many thanks

Jack






Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
JDYates - 6/7/2023
Hi, 

I'm desigining a task where I want participants to make a choice of 2 preferred drinks (one alcohol and one soft drink) then they see those 2 chosen images followed by a slider scale. I have most of it I just can't seem to get the skip to work and all the images show regardless of choice. I'm probably making a stupid mistake and have gone about it a longer way than needed. I've attached my script below

<radiobuttons q1>
/caption = "1. Please choose your preferred alcoholic drink?"
/ options = ("Beer", "Cider", "Whisky", "Wine", "Gin")

/required = true
/orientation =vertical
</radiobuttons>

<radiobuttons q2>
/caption = "2. Please choose your preferred soft drink?"
/ options = ("Water", "Coke", "Juice", "Coffee", "Tea")
/required = true
/orientation = vertical
</radiobuttons>



<surveypage drink_choice>

/questions = [1 = q1, q2]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>



<surveypage drink_vas>
/ questions = [1=drink_vas]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<slider drink_vas>
/ caption = "How much do you value the first drink over the second drink?"
/ range = (-100,100)
/ labels = ("Negatively", "Positively")
/ slidersize = (50%, 20%)
/ position = (25%, 40%)
/ required = true
</slider>


</instruct>
<text fixation>
/ items = ("+")
/ erase = false
</text>

<picture beer>
/ items = beer
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item beer>
/1 = "beer.jpg"
</item>

<picture cider>
/ items = cider
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item cider>
/1 = "cider.jpg"
</item>

<picture whisky>
/ items = whisky
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item whisky>
/1 = "whisky.jpg"
</item>

<picture wine>
/ items = wine
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item wine>
/1 = "wine.jpg"
</item>

<picture gin>
/ items = gin
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item gin>
/1 = "gin.jpg"
</item>

<picture water>
/ items = water
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item water>
/1 = "water.jpg"
</item>

<picture coke>
/ items = coke
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coke>
/1 = "coke.jpg"
</item>

<picture juice>
/ items = juice
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item juice>
/1 = "juice.jpg"
</item>

<picture coffee>
/ items = coffee
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coffee>
/1 = "coffee.jpg"
</item>

<picture tea>
/ items = tea
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item tea>
/1 = "tea.jpg"
</item>



<trial beer_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial beer_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial cider_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial cider_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial whisky_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial whisky_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial wine_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial wine_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial gin_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial gin_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]

</trial>

<block 1>
/trials= [
    
1=drink_choice]

</block>

<block 2>
/ trials = [
    1 = beer_water , beer_coffee, beer_coke, beer_juice, beer_tea,
    cider_coffee, cider_coke, cider_juice, cider_tea , cider_water,
    gin_coffee, gin_coke, gin_juice, gin_tea, gin_water,
    whisky_coffee, whisky_coke, whisky_juice, whisky_tea, whisky_water,
    wine_coffee, wine_coke, wine_juice, wine_tea, wine_water
    
]

</block>

<block 3>
/trials=[
    
1=drink_vas]
</block>

<expt >
/ blocks = [1 = block.1; 2 = block.2; 3=block.3]

</expt>

any help would be appreciated,

many thanks

Jack






Please do not paste entire scripts into a post's body. Instead simply attach the script using +Insert -> Add File. Additionally, if your code requires external files (images, etc.) to run, provide those files, otherwise the code is not really useful because nobody can actually run it. Put everything needed -- script and required files -- in a ZIP and then attach it.

Thank you.
JDYates
JDYates
Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)
Group: Forum Members
Posts: 18, Visits: 47
Dave - 6/7/2023
JDYates - 6/7/2023
Hi, 

I'm desigining a task where I want participants to make a choice of 2 preferred drinks (one alcohol and one soft drink) then they see those 2 chosen images followed by a slider scale. I have most of it I just can't seem to get the skip to work and all the images show regardless of choice. I'm probably making a stupid mistake and have gone about it a longer way than needed. I've attached my script below

<radiobuttons q1>
/caption = "1. Please choose your preferred alcoholic drink?"
/ options = ("Beer", "Cider", "Whisky", "Wine", "Gin")

/required = true
/orientation =vertical
</radiobuttons>

<radiobuttons q2>
/caption = "2. Please choose your preferred soft drink?"
/ options = ("Water", "Coke", "Juice", "Coffee", "Tea")
/required = true
/orientation = vertical
</radiobuttons>



<surveypage drink_choice>

/questions = [1 = q1, q2]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>



<surveypage drink_vas>
/ questions = [1=drink_vas]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<slider drink_vas>
/ caption = "How much do you value the first drink over the second drink?"
/ range = (-100,100)
/ labels = ("Negatively", "Positively")
/ slidersize = (50%, 20%)
/ position = (25%, 40%)
/ required = true
</slider>


</instruct>
<text fixation>
/ items = ("+")
/ erase = false
</text>

<picture beer>
/ items = beer
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item beer>
/1 = "beer.jpg"
</item>

<picture cider>
/ items = cider
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item cider>
/1 = "cider.jpg"
</item>

<picture whisky>
/ items = whisky
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item whisky>
/1 = "whisky.jpg"
</item>

<picture wine>
/ items = wine
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item wine>
/1 = "wine.jpg"
</item>

<picture gin>
/ items = gin
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item gin>
/1 = "gin.jpg"
</item>

<picture water>
/ items = water
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item water>
/1 = "water.jpg"
</item>

<picture coke>
/ items = coke
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coke>
/1 = "coke.jpg"
</item>

<picture juice>
/ items = juice
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item juice>
/1 = "juice.jpg"
</item>

<picture coffee>
/ items = coffee
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coffee>
/1 = "coffee.jpg"
</item>

<picture tea>
/ items = tea
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item tea>
/1 = "tea.jpg"
</item>



<trial beer_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial beer_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial cider_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial cider_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial whisky_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial whisky_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial wine_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial wine_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial gin_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial gin_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]

</trial>

<block 1>
/trials= [
    
1=drink_choice]

</block>

<block 2>
/ trials = [
    1 = beer_water , beer_coffee, beer_coke, beer_juice, beer_tea,
    cider_coffee, cider_coke, cider_juice, cider_tea , cider_water,
    gin_coffee, gin_coke, gin_juice, gin_tea, gin_water,
    whisky_coffee, whisky_coke, whisky_juice, whisky_tea, whisky_water,
    wine_coffee, wine_coke, wine_juice, wine_tea, wine_water
    
]

</block>

<block 3>
/trials=[
    
1=drink_vas]
</block>

<expt >
/ blocks = [1 = block.1; 2 = block.2; 3=block.3]

</expt>

any help would be appreciated,

many thanks

Jack






Please do not paste entire scripts into a post's body. Instead simply attach the script using +Insert -> Add File. Additionally, if your code requires external files (images, etc.) to run, provide those files, otherwise the code is not really useful because nobody can actually run it. Put everything needed -- script and required files -- in a ZIP and then attach it.

Thank you.

Hi,

sorry about that, I have attached the script with images in a zip folder now,

thank you.
Attachments
inquisit_help.zip (89 views, 78.00 KB)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
JDYates - 6/7/2023
Dave - 6/7/2023
JDYates - 6/7/2023
Hi, 

I'm desigining a task where I want participants to make a choice of 2 preferred drinks (one alcohol and one soft drink) then they see those 2 chosen images followed by a slider scale. I have most of it I just can't seem to get the skip to work and all the images show regardless of choice. I'm probably making a stupid mistake and have gone about it a longer way than needed. I've attached my script below

<radiobuttons q1>
/caption = "1. Please choose your preferred alcoholic drink?"
/ options = ("Beer", "Cider", "Whisky", "Wine", "Gin")

/required = true
/orientation =vertical
</radiobuttons>

<radiobuttons q2>
/caption = "2. Please choose your preferred soft drink?"
/ options = ("Water", "Coke", "Juice", "Coffee", "Tea")
/required = true
/orientation = vertical
</radiobuttons>



<surveypage drink_choice>

/questions = [1 = q1, q2]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>



<surveypage drink_vas>
/ questions = [1=drink_vas]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<slider drink_vas>
/ caption = "How much do you value the first drink over the second drink?"
/ range = (-100,100)
/ labels = ("Negatively", "Positively")
/ slidersize = (50%, 20%)
/ position = (25%, 40%)
/ required = true
</slider>


</instruct>
<text fixation>
/ items = ("+")
/ erase = false
</text>

<picture beer>
/ items = beer
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item beer>
/1 = "beer.jpg"
</item>

<picture cider>
/ items = cider
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item cider>
/1 = "cider.jpg"
</item>

<picture whisky>
/ items = whisky
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item whisky>
/1 = "whisky.jpg"
</item>

<picture wine>
/ items = wine
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item wine>
/1 = "wine.jpg"
</item>

<picture gin>
/ items = gin
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item gin>
/1 = "gin.jpg"
</item>

<picture water>
/ items = water
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item water>
/1 = "water.jpg"
</item>

<picture coke>
/ items = coke
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coke>
/1 = "coke.jpg"
</item>

<picture juice>
/ items = juice
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item juice>
/1 = "juice.jpg"
</item>

<picture coffee>
/ items = coffee
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coffee>
/1 = "coffee.jpg"
</item>

<picture tea>
/ items = tea
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item tea>
/1 = "tea.jpg"
</item>



<trial beer_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial beer_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial cider_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial cider_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial whisky_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial whisky_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial wine_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial wine_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial gin_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial gin_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]

</trial>

<block 1>
/trials= [
    
1=drink_choice]

</block>

<block 2>
/ trials = [
    1 = beer_water , beer_coffee, beer_coke, beer_juice, beer_tea,
    cider_coffee, cider_coke, cider_juice, cider_tea , cider_water,
    gin_coffee, gin_coke, gin_juice, gin_tea, gin_water,
    whisky_coffee, whisky_coke, whisky_juice, whisky_tea, whisky_water,
    wine_coffee, wine_coke, wine_juice, wine_tea, wine_water
    
]

</block>

<block 3>
/trials=[
    
1=drink_vas]
</block>

<expt >
/ blocks = [1 = block.1; 2 = block.2; 3=block.3]

</expt>

any help would be appreciated,

many thanks

Jack






Please do not paste entire scripts into a post's body. Instead simply attach the script using +Insert -> Add File. Additionally, if your code requires external files (images, etc.) to run, provide those files, otherwise the code is not really useful because nobody can actually run it. Put everything needed -- script and required files -- in a ZIP and then attach it.

Thank you.

Hi,

sorry about that, I have attached the script with images in a zip folder now,

thank you.

Thanks for the files. The problem is that throughout many, but not all of your /skip attributes you use the wrong operator, e.g. here:



= is the assignment operator. That's wrong. You don't want to (and in fact can't) assign a response to the radiobuttons question. You want the logical operator ==, i.e. you want to know whether the statement is true or false.

Fix those mistakes and then it'll work.


Attachments
tester.fixed.iqx (84 views, 16.00 KB)
JDYates
JDYates
Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)
Group: Forum Members
Posts: 18, Visits: 47
Dave - 6/7/2023
JDYates - 6/7/2023
Dave - 6/7/2023
JDYates - 6/7/2023
Hi, 

I'm desigining a task where I want participants to make a choice of 2 preferred drinks (one alcohol and one soft drink) then they see those 2 chosen images followed by a slider scale. I have most of it I just can't seem to get the skip to work and all the images show regardless of choice. I'm probably making a stupid mistake and have gone about it a longer way than needed. I've attached my script below

<radiobuttons q1>
/caption = "1. Please choose your preferred alcoholic drink?"
/ options = ("Beer", "Cider", "Whisky", "Wine", "Gin")

/required = true
/orientation =vertical
</radiobuttons>

<radiobuttons q2>
/caption = "2. Please choose your preferred soft drink?"
/ options = ("Water", "Coke", "Juice", "Coffee", "Tea")
/required = true
/orientation = vertical
</radiobuttons>



<surveypage drink_choice>

/questions = [1 = q1, q2]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>



<surveypage drink_vas>
/ questions = [1=drink_vas]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<slider drink_vas>
/ caption = "How much do you value the first drink over the second drink?"
/ range = (-100,100)
/ labels = ("Negatively", "Positively")
/ slidersize = (50%, 20%)
/ position = (25%, 40%)
/ required = true
</slider>


</instruct>
<text fixation>
/ items = ("+")
/ erase = false
</text>

<picture beer>
/ items = beer
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item beer>
/1 = "beer.jpg"
</item>

<picture cider>
/ items = cider
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item cider>
/1 = "cider.jpg"
</item>

<picture whisky>
/ items = whisky
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item whisky>
/1 = "whisky.jpg"
</item>

<picture wine>
/ items = wine
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item wine>
/1 = "wine.jpg"
</item>

<picture gin>
/ items = gin
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item gin>
/1 = "gin.jpg"
</item>

<picture water>
/ items = water
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item water>
/1 = "water.jpg"
</item>

<picture coke>
/ items = coke
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coke>
/1 = "coke.jpg"
</item>

<picture juice>
/ items = juice
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item juice>
/1 = "juice.jpg"
</item>

<picture coffee>
/ items = coffee
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coffee>
/1 = "coffee.jpg"
</item>

<picture tea>
/ items = tea
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item tea>
/1 = "tea.jpg"
</item>



<trial beer_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial beer_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial cider_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial cider_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial whisky_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial whisky_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial wine_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial wine_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial gin_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial gin_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]

</trial>

<block 1>
/trials= [
    
1=drink_choice]

</block>

<block 2>
/ trials = [
    1 = beer_water , beer_coffee, beer_coke, beer_juice, beer_tea,
    cider_coffee, cider_coke, cider_juice, cider_tea , cider_water,
    gin_coffee, gin_coke, gin_juice, gin_tea, gin_water,
    whisky_coffee, whisky_coke, whisky_juice, whisky_tea, whisky_water,
    wine_coffee, wine_coke, wine_juice, wine_tea, wine_water
    
]

</block>

<block 3>
/trials=[
    
1=drink_vas]
</block>

<expt >
/ blocks = [1 = block.1; 2 = block.2; 3=block.3]

</expt>

any help would be appreciated,

many thanks

Jack






Please do not paste entire scripts into a post's body. Instead simply attach the script using +Insert -> Add File. Additionally, if your code requires external files (images, etc.) to run, provide those files, otherwise the code is not really useful because nobody can actually run it. Put everything needed -- script and required files -- in a ZIP and then attach it.

Thank you.

Hi,

sorry about that, I have attached the script with images in a zip folder now,

thank you.

Thanks for the files. The problem is that throughout many, but not all of your /skip attributes you use the wrong operator, e.g. here:



= is the assignment operator. That's wrong. You don't want to (and in fact can't) assign a response to the radiobuttons question. You want the logical operator ==, i.e. you want to know whether the statement is true or false.

Fix those mistakes and then it'll work.


Brilliant, thanks very much for your help.

Do I need to change anything with block 2 or should it be left as trials = 1= (all the names of the trials)?

many thanks

Jack
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
JDYates - 6/7/2023
Dave - 6/7/2023
JDYates - 6/7/2023
Dave - 6/7/2023
JDYates - 6/7/2023
Hi, 

I'm desigining a task where I want participants to make a choice of 2 preferred drinks (one alcohol and one soft drink) then they see those 2 chosen images followed by a slider scale. I have most of it I just can't seem to get the skip to work and all the images show regardless of choice. I'm probably making a stupid mistake and have gone about it a longer way than needed. I've attached my script below

<radiobuttons q1>
/caption = "1. Please choose your preferred alcoholic drink?"
/ options = ("Beer", "Cider", "Whisky", "Wine", "Gin")

/required = true
/orientation =vertical
</radiobuttons>

<radiobuttons q2>
/caption = "2. Please choose your preferred soft drink?"
/ options = ("Water", "Coke", "Juice", "Coffee", "Tea")
/required = true
/orientation = vertical
</radiobuttons>



<surveypage drink_choice>

/questions = [1 = q1, q2]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>



<surveypage drink_vas>
/ questions = [1=drink_vas]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<slider drink_vas>
/ caption = "How much do you value the first drink over the second drink?"
/ range = (-100,100)
/ labels = ("Negatively", "Positively")
/ slidersize = (50%, 20%)
/ position = (25%, 40%)
/ required = true
</slider>


</instruct>
<text fixation>
/ items = ("+")
/ erase = false
</text>

<picture beer>
/ items = beer
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item beer>
/1 = "beer.jpg"
</item>

<picture cider>
/ items = cider
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item cider>
/1 = "cider.jpg"
</item>

<picture whisky>
/ items = whisky
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item whisky>
/1 = "whisky.jpg"
</item>

<picture wine>
/ items = wine
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item wine>
/1 = "wine.jpg"
</item>

<picture gin>
/ items = gin
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item gin>
/1 = "gin.jpg"
</item>

<picture water>
/ items = water
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item water>
/1 = "water.jpg"
</item>

<picture coke>
/ items = coke
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coke>
/1 = "coke.jpg"
</item>

<picture juice>
/ items = juice
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item juice>
/1 = "juice.jpg"
</item>

<picture coffee>
/ items = coffee
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coffee>
/1 = "coffee.jpg"
</item>

<picture tea>
/ items = tea
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item tea>
/1 = "tea.jpg"
</item>



<trial beer_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial beer_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial cider_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial cider_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial whisky_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial whisky_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial wine_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial wine_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial gin_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial gin_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]

</trial>

<block 1>
/trials= [
    
1=drink_choice]

</block>

<block 2>
/ trials = [
    1 = beer_water , beer_coffee, beer_coke, beer_juice, beer_tea,
    cider_coffee, cider_coke, cider_juice, cider_tea , cider_water,
    gin_coffee, gin_coke, gin_juice, gin_tea, gin_water,
    whisky_coffee, whisky_coke, whisky_juice, whisky_tea, whisky_water,
    wine_coffee, wine_coke, wine_juice, wine_tea, wine_water
    
]

</block>

<block 3>
/trials=[
    
1=drink_vas]
</block>

<expt >
/ blocks = [1 = block.1; 2 = block.2; 3=block.3]

</expt>

any help would be appreciated,

many thanks

Jack






Please do not paste entire scripts into a post's body. Instead simply attach the script using +Insert -> Add File. Additionally, if your code requires external files (images, etc.) to run, provide those files, otherwise the code is not really useful because nobody can actually run it. Put everything needed -- script and required files -- in a ZIP and then attach it.

Thank you.

Hi,

sorry about that, I have attached the script with images in a zip folder now,

thank you.

Thanks for the files. The problem is that throughout many, but not all of your /skip attributes you use the wrong operator, e.g. here:



= is the assignment operator. That's wrong. You don't want to (and in fact can't) assign a response to the radiobuttons question. You want the logical operator ==, i.e. you want to know whether the statement is true or false.

Fix those mistakes and then it'll work.


Brilliant, thanks very much for your help.

Do I need to change anything with block 2 or should it be left as trials = 1= (all the names of the trials)?

many thanks

Jack

You can leave that as is
JDYates
JDYates
Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)Associate Member (233 reputation)
Group: Forum Members
Posts: 18, Visits: 47
Dave - 6/7/2023
JDYates - 6/7/2023
Dave - 6/7/2023
JDYates - 6/7/2023
Dave - 6/7/2023
JDYates - 6/7/2023
Hi, 

I'm desigining a task where I want participants to make a choice of 2 preferred drinks (one alcohol and one soft drink) then they see those 2 chosen images followed by a slider scale. I have most of it I just can't seem to get the skip to work and all the images show regardless of choice. I'm probably making a stupid mistake and have gone about it a longer way than needed. I've attached my script below

<radiobuttons q1>
/caption = "1. Please choose your preferred alcoholic drink?"
/ options = ("Beer", "Cider", "Whisky", "Wine", "Gin")

/required = true
/orientation =vertical
</radiobuttons>

<radiobuttons q2>
/caption = "2. Please choose your preferred soft drink?"
/ options = ("Water", "Coke", "Juice", "Coffee", "Tea")
/required = true
/orientation = vertical
</radiobuttons>



<surveypage drink_choice>

/questions = [1 = q1, q2]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>



<surveypage drink_vas>
/ questions = [1=drink_vas]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<slider drink_vas>
/ caption = "How much do you value the first drink over the second drink?"
/ range = (-100,100)
/ labels = ("Negatively", "Positively")
/ slidersize = (50%, 20%)
/ position = (25%, 40%)
/ required = true
</slider>


</instruct>
<text fixation>
/ items = ("+")
/ erase = false
</text>

<picture beer>
/ items = beer
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item beer>
/1 = "beer.jpg"
</item>

<picture cider>
/ items = cider
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item cider>
/1 = "cider.jpg"
</item>

<picture whisky>
/ items = whisky
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item whisky>
/1 = "whisky.jpg"
</item>

<picture wine>
/ items = wine
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item wine>
/1 = "wine.jpg"
</item>

<picture gin>
/ items = gin
/ size = (20%, 20%)
/ position = (30%, 50%)
/ erase = false
</picture>

<item gin>
/1 = "gin.jpg"
</item>

<picture water>
/ items = water
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item water>
/1 = "water.jpg"
</item>

<picture coke>
/ items = coke
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coke>
/1 = "coke.jpg"
</item>

<picture juice>
/ items = juice
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item juice>
/1 = "juice.jpg"
</item>

<picture coffee>
/ items = coffee
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item coffee>
/1 = "coffee.jpg"
</item>

<picture tea>
/ items = tea
/ size = (20%, 20%)
/ position = (70%, 50%)
/ erase = false
</picture>

<item tea>
/1 = "tea.jpg"
</item>



<trial beer_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial beer_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial beer_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, beer, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial cider_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial cider_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial cider_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, cider, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial whisky_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial whisky_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial whisky_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, whisky, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial wine_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial wine_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider") ]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial wine_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, wine, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Gin")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
</trial>

<trial gin_water>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, water ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coke>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coke ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_juice>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, juice ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>



<trial gin_coffee>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, coffee ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Tea")]
</trial>


<trial gin_tea>
/ stimulusframes = [1=clearscreen, fixation; 50=clearscreen, gin, tea ]
/ timeout = 2000
/ screencapture = true
/ skip = [IF(radiobuttons.q1.response== "Cider")]
/ skip = [IF(radiobuttons.q2.response= "Juice")]
/ skip = [IF(radiobuttons.q1.response== "Whisky")]
/ skip = [IF(radiobuttons.q2.response= "Coke")]
/ skip = [IF(radiobuttons.q1.response== "Wine")]
/ skip = [IF(radiobuttons.q2.response= "Water")]
/ skip = [IF(radiobuttons.q1.response== "Beer")]
/ skip = [IF(radiobuttons.q2.response= "Coffee")]

</trial>

<block 1>
/trials= [
    
1=drink_choice]

</block>

<block 2>
/ trials = [
    1 = beer_water , beer_coffee, beer_coke, beer_juice, beer_tea,
    cider_coffee, cider_coke, cider_juice, cider_tea , cider_water,
    gin_coffee, gin_coke, gin_juice, gin_tea, gin_water,
    whisky_coffee, whisky_coke, whisky_juice, whisky_tea, whisky_water,
    wine_coffee, wine_coke, wine_juice, wine_tea, wine_water
    
]

</block>

<block 3>
/trials=[
    
1=drink_vas]
</block>

<expt >
/ blocks = [1 = block.1; 2 = block.2; 3=block.3]

</expt>

any help would be appreciated,

many thanks

Jack






Please do not paste entire scripts into a post's body. Instead simply attach the script using +Insert -> Add File. Additionally, if your code requires external files (images, etc.) to run, provide those files, otherwise the code is not really useful because nobody can actually run it. Put everything needed -- script and required files -- in a ZIP and then attach it.

Thank you.

Hi,

sorry about that, I have attached the script with images in a zip folder now,

thank you.

Thanks for the files. The problem is that throughout many, but not all of your /skip attributes you use the wrong operator, e.g. here:



= is the assignment operator. That's wrong. You don't want to (and in fact can't) assign a response to the radiobuttons question. You want the logical operator ==, i.e. you want to know whether the statement is true or false.

Fix those mistakes and then it'll work.


Brilliant, thanks very much for your help.

Do I need to change anything with block 2 or should it be left as trials = 1= (all the names of the trials)?

many thanks

Jack

You can leave that as is

great, thanks very much Dave
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search