My goal is to divide a list of stimuli into two blocks randomly each time a participant is run.
I think I am very close to coding it, but I am having some trouble with performing operations on that initial undivided list.
I could . . .
(1) read in levels from a .txt file (but not create a List Object with them), assign them to an array, and then randomly assign stimuli from the array to the two block lists
(2) create one CompleteList with all the levels at the beginning of the experiment and then divide the stimuli randomly
For option (1), I cannot find the appropriate code.
For option (2), when I created a CompleteList List Object without assigning a procedure to each level, E-Prime said I needed a procedure, so I tried creating a Division Procedure in my SessionProc. It looked like this:
> SessionProc
> TheDivision (says to run TheDivisionProc Procedure)
> TheDivisionProc
> CompleteList
> DivideStimuliScript (copy the items into an array, randomize them, and then assign them to the two blocks of my experiment)
> BlockList
> Block1
> Block 2
Unfortunately, assigning TheDivisionProc as the Procedure for items in CompleteList resulted in a recursive loop; assigning SessionProc had the same effect.
Any help you can provide with implementing option (1) or (2) would be greatly appreciated.