Action (pressing a button) linked to a specific block


Author
Message
NinaBergner
NinaBergner
Associate Member (184 reputation)Associate Member (184 reputation)Associate Member (184 reputation)Associate Member (184 reputation)Associate Member (184 reputation)Associate Member (184 reputation)Associate Member (184 reputation)Associate Member (184 reputation)Associate Member (184 reputation)
Group: Forum Members
Posts: 10, Visits: 53
Hi Dave!

I have difficulties linking a button press to a specific block. If participants click on 'YES', they should be directed to block2 (the one that comes after the block Buttonpress); and if they click on 'NO' that they should be directed to block3 (the block that comes after block2). How do I achieve this? 


<text Yes>
/items = ("Yes")
/position = (75%, 93%)
/ fontstyle = ("TimesNewRoman", 1.75%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (15%, 10%)
/ vjustify = center
</text>

<text No>
/items = ("No")
/position = (25%, 93%)
/ fontstyle = ("TimesNewRoman", 1.75%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/size = (15%, 10%)
/vjustify = center
</text>

<trial Buttonpress>
/inputdevice = mouse
/stimulusframes = [1 = Buttonpress, Yes, No]
/validresponse = (Yes, No)
?
</trial>


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

Thank you in advance,

Nina
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search