next trial label?

liwenna liwenna at gmail.com
Thu May 28 15:11:40 UTC 2009


mmm there's bound to be a better way but first thing that comes to
mind here...

declare a global variable on the user tab of the script, say something
like... 'dim nogolabeler as integer'.
Then at the end of a trial add a piece of inline that reads the
trialtype (from an attribute somewhere in your lists) and toggles the
nogolabeler accordingly.

 if c.getattrib ("trialtype" ) = 0 then nogolabeler = 0
 if c.getattrib ("trialtype") = 1 then nogolabeler = 1

then at the beginning of the trialproc add another inline that reads
the nogolabeler and writes an attribute if it is set to 1 (by the
previous described inline at the end of the previous trial).

if nogolabeler = 0 then c.setattrib "prevtrialwasnogo", 0
if nogolabeler = 1 then c.setattrib "prevtrialwasnogo", 1


I didn't try these lines in e-prime so not sure if they're actually
working, but it gives you an idea and it might actually do the thing
you need.

Good luck!

liwenna

On May 28, 5:08 am, M <mle... at gmail.com> wrote:
> Hello,
> I'm working on a go/no-go experiment, and I'd like to be able to label
> the trials that come immediately after the no-go trials (the trials
> appear randomly).
> Does anyone have any suggestions on how to write code to add an
> attribute that labels the subsequent trial (and not the actual no-go
> trial)?
> I have not had much luck with anything I've tried so far.
> Thanks so much!
--~--~---------~--~----~------------~-------~--~----~
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