Jumping/Gating

115 views
Skip to first unread message

sga...@macalester.edu

unread,
Aug 14, 2013, 3:46:34 PM8/14/13
to e-p...@googlegroups.com
Hello,

Our research team is new to E-Prime, and we have run into a problem. Our experimental paradigms require what E-Prime seems to call jumping (i.e., leading the participant to encounter different stimuli depending on his/her response to initial stimuli). Prior to our travails with E-Prime, we knew this process as "gating." After reading up on Jumping on this forum and in various manuals. it seems that this procedure requires the use of a Label (and/or Jump Label) and some manipulation of the "End Action" component of a stimuli's properties. However, neither our Principal Investigator nor anyone else in the lab can determine how to make this happen. I am beginning to think it might be easiest with some InLine code writing, but I could be incorrect because none of us really know what we're doing.  If anyone can explain how this works, it would be much appreciated. 

Scott G

Maayan Kedar

unread,
Aug 15, 2013, 12:54:15 AM8/15/13
to e-p...@googlegroups.com

Hi,
This is not too complicated:
Lets say you have 3 slides and you want to skip to the third slide if the answer on the first one was "3". You put a label flag before the third slide, and inline after the first one says:
If slide1.resp=3 then goto/jump to label1

You can also use slide1.acc if you want to jump fot correct or incorrect answer.

This is the basic idea.
Good luck!
Maayan

בתאריך 2013 8 14 22:46, מאת <sga...@macalester.edu>:
Hello,

Our research team is new to E-Prime, and we have run into a problem. Our experimental paradigms require what E-Prime seems to call jumping (i.e., leading the participant to encounter different stimuli depending on his/her response to initial stimuli). Prior to our travails with E-Prime, we knew this process as "gating." After reading up on Jumping on this forum and in various manuals. it seems that this procedure requires the use of a Label (and/or Jump Label) and some manipulation of the "End Action" component of a stimuli's properties. However, neither our Principal Investigator nor anyone else in the lab can determine how to make this happen. I am beginning to think it might be easiest with some InLine code writing, but I could be incorrect because none of us really know what we're doing.  If anyone can explain how this works, it would be much appreciated. 

Scott G

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/92af2928-c6d1-46c8-a0b7-96f8f97e1be1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

depechecircle

unread,
Dec 20, 2013, 4:59:25 PM12/20/13
to e-p...@googlegroups.com
Hi,

I realize that this is an old post, but I am having the same problem. I am assuming that the inline code is a bit more complicated than 
"If TextDisplay1.resp=2 then goto Label1"

I tried using this text and I got the error message "Type mismatch"

Any advice or more specific code to use?

Thank you!!!
Tina Chou

João Ferreira

unread,
Jun 8, 2016, 11:33:16 AM6/8/16
to E-Prime
Have you managed to figure this out? I have a simillar issue: with a code line like that (using either .RESP or .ACC) it always skips slide 2 for me.

David McFarlane

unread,
Jul 19, 2016, 2:05:13 PM7/19/16
to e-p...@googlegroups.com
Just to answer the question from Tina on 20 Dec 2013 ...

.RESP returns a string value, so you need to compare it to another
string value instead of to a numeric value, otherwise you get the "Type
mismatch" error at run time. So the proper line of code would go

If (TextDisplay1.RESP = "2") Then Goto Label1

Note the added quote marks (I also added some parentheses for clarity,
etc.).

-- David McFarlane
Reply all
Reply to author
Forward
0 new messages