jump or if then?
David McFarlane
mcfarla9 at msu.edu
Thu Apr 21 17:51:38 UTC 2011
I would have you go with Mich's approach
here. But as an academic exercise, here is how
to accomplish the same thing using Jump and no inline.
Trial proc structured same as before, but no inline:
- Slide 1 : allowed responses A & B
- Slide 2: allowed responses 1 & 2 & 3
- Label: donttask2
On Slide 1, set Jump Label to donttask2. Then
add *two* keyboard input masks. For one of them,
set Allowable to A, and End Action to Jump; for
the other, set Allowable to B and End Action to
(terminate). That should do it.
Using multiple input masks and Jump is an art
suitable to only a few, most will find If-Then in an inline more manageable.
-- David McFarlane, Professional
At 4/20/2011 04:23 AM Wednesday, Michiel Spape wrote:
>Hiya,
>If it's as simple as you think it is, you should
>be able to do it after having read the "getting
>started guide". In this case, you would be right
>- and if the getting started guide may not do it
>for you, I'd suggest working through our little
>bit of freely available course material
>(www.cognitology.eu, about me, underneath
>everything else), because, ultimately, you
>cannot use E-Prime 'instantly' (at least, very
>few students seem to, even though there are some
>talented 'coders-to-be'). So, despite me
>answering this question, try to give it a go anyway.
>
>1. Stimulus1 is a textdisplay saying "Do you
>want to do task 2? A = yes, B = no", allowable
>response ab. That's just about what you want, no?
>2. After that is an inline saying
>IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2
>3. Stimulus2 is a textdisplay saying "Select
>response 1, 2 or 3" (or whatever you'd like).
>4. Then insert a label, call it Dontwanttodotask2
>
>That's basically it. Note that I use no else,
>since Stimulus2 will follow anyway, unless b is
>selected. After 4 is the end of the trial, so it
>should continue with your task1.
>Best,
>Mich
>
>Michiel Spapé
>Research Fellow
>Perception & Action group
>University of Nottingham
>School of Psychology
>www.cognitology.eu
>
>
>-----Original Message-----
>From: e-prime at googlegroups.com
>[mailto:e-prime at googlegroups.com] On Behalf Of jotapan
>Sent: 20 April 2011 01:34
>To: E-Prime
>Subject: jump or if then?
>
>Hi to all,
>I have what I believe o be a simple task to program, but I just not
>being able to do it since I'm a beginner in e-prime.
>
>I have two tasks:
>1) task 1: responses A and B
>2) and task 2: responses 1, 2, and 3
>
>I want task 2 to be presented to the participant only if he responds A
>in task 1; if he responds B he should just gets the next trial of task
>1.
>I tried looking into the "jump" of the stimulus property, but from
>what I understood it works independently of what response is given to
>that stimulus.
>Another idea I had was just to create a script with an if then rule,
>which I don't know how to do :( the idea would be something like (with
>proper coding)
>
>If response to task 1 = A,
>then task B,
>else Task A
>end if
>
>Any help would be very appreciated! thanks
>Jotapan
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list