Fill an array from an (unreferenced) list?

liwenna liwenna at gmail.com
Tue Aug 4 09:13:01 UTC 2009


Hi all!

I got something....

Does anyone know how to fill an array with words from an
(unreferenced) list???

Elaborated background info:
I'm working on a NAP task which demands control over two pairs of
stimuli in consecutive trials. I.E. a prime trial may show a negative
distractorword and a negative targetword and is followed by a probe
trial that shows a neutral distractorword and a positive targetword.
To put it differently: each trials consists of 2 displays with 4
stimuli in total and control over which type of word (pos neg neutral)
appears in which position is needed. Moreover... blocks of trial
(pairs) are repeated and the stimuliwords need to be randomized each
time.

I got this all working by using arrays. I got separate arrays for
negative, positive and neutral words and at the beginning of each
block these 3 arrays are randomised and then used to fill a triallist.
The trialpair described above for instance is one level in this list
that has four attributes (primetarget = negarray(0) primedistractor =
negarray(1), probetarget = posarray(0) and probedistractor = neutarray
(0), etc etc, with one level per trialpair.

So far so good.... but now about filling the arrays... in my testsetup
I filled the arrays by typing out each word in the array-inline for
instance:

negarray(0) = "negword1"
negarray(1) = "negword2"
etc

This works fine but it means that each single word in every list has
to be written out in the inline and completed with " " at the start
and beginning. As I like my setups to be 'versatile' and easy to
adjust for later use I would think it to be more elegant (and less of
a pain in adding " -wise) if the stimuliwords could more simply be
pasted in to an (unreferenced) list and the arrays being filled from
these lists.... but I can't get this to work....  I tried it with
colon notation and unreferenced lists ( negarray(0) = [negative:0] and
with getattrib/setattrib setattrib ( "negarray(0)", [negative:0]  as
well as negarray(0) = getattrib ([negative:0]) ), both in all kinds of
bracket-arrangements and with the list that contains the attribute
'negative' placed in different locations (trashthing, sessionproc,
blockproc, trialproc etc) but to no avail....

I'm just hoping that I'm majorly overlooking something and/or that
someone just happens to know how to do this. The task is working fine
as it is, I just think it would be more elegant if the arrays could be
filled from lists. Or could this perhaps be another instance of colon-
notation not working properly?

Best regards,

liwenna

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