jump or if then?

Michiel Spape Michiel.Spape at nottingham.ac.uk
Wed Apr 20 08:23:36 UTC 2011


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.

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-- 
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