jump if response was
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



jump if response was Expand / Collapse
Author
Message
Posted 10/28/2007 3:01:33 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 6/25/2008 11:35:31 AM
Posts: 12, Visits: 37
Dear everyone,

For my paradigm, participants have to make responses with the SRBox. And if the response was right (lets say button 1) than I want it to jump to a label after an aversive stimuli.

I have tried to use e-basic, but it doesn't work. I tried something like:

Dim theSRBoxResponseData As SRBoxResponseData

If theSRBoxResponseData.RESP = 1 Then

  Goto label

Does anyone know how I can make this work, I know that there must be something wrong with the script, but I just don't know what that is. I would appreciate it if someone can give me some advice or an example es-file concerning SRBox responses and/or jumps. Thanks in advance.

Verena

Post #770
Posted 10/28/2007 9:27:50 PM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Administrators
Last Login: Yesterday @ 5:00:06 PM
Posts: 569, Visits: 1,238
You are on the right track, give this a try...

1) Place an InLine immediately after your Stimulus object, put code like you had in your post but change "goto label" and replace "label" with the name of the label.  You'll also need to add a End If line.

2) Place a label object from the toolbox where you want the jump to occur.  Name this the same as you entered in #1.

The above is good to skip objects in your procedure.  With adding more labels and code, you can determine the specific order of where things should go.  I'd be happy to offer a sample if you can describe in more detail the rest of the procedure.

-Brandon

Post #774
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 5:13am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 9 queries. Compression Disabled.