<div dir="ltr">Dear E-Prime community,<br>me and my<b> </b>colleague are working on a project with E-Prime where we want to give people a task in which they type in input and then use their written sentences to prime them later on. We have three different conditions with three different instructions/input with which we want to prime the participants. <br><br>I first generated a random number and then my idea was to display the input based on the random number assigned before. I created the different input objects (as text displays within the GUI named negrealityelab etc.), but cannot access them in the script to display them (first as an instruction) and then as a prime later in the experiment.<br><br>The little script below is what I have come up with so far, but it doesnt work...and I don't know how to specify the prime as for duration and such.<br><br><br>#Create random number<br><br>Dim g_rand as Integer<br>g_rand = Random(1,3)<br>c.SetAttrib "g_rand_cond", g_rand <br><br>#Display input task based on random number<br><br>Select Case c.GetAttrib("g_rand")<br>case = 1, display c.GetAttrib("negrealityelab")<br>case = 2, display c.GetAttrib("posfutureelab")<br>case = 3, display c.GetAttrib("mcposfuturelab")<br>End Select<br><br>#Prime participants with their input<br><br>Select Case c.GetAttrib("g_rand")<br>case = 1, display "negrealityelab.RESP"<br>case = 2, display "posfutureelab.RESP"<br>case = 3, display "mcposfuturelab.RESP"<br><br><br>-----<br><br>Alternatively to just display instructions this should work, right?<br><br><br>If g_rand = 1 then<br>inputtext1 = "negrealityelab"<br>End if<br><br>If g_rand = 2 then<br>inputtext2 = "posfutureelab"<br>End if<br><br>If g_rand = 3 then<br>inputtext3 = "mcposfuturelab"<br>End if<br><br><br>I havent found anything similar to this problem online so I thought why not ask the question here.<br><br>Any help is very much appreciated! <br><br>Best ~ Simon <br><br></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/4eb1280c-7f37-46a9-839b-59d67fd286e2%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/4eb1280c-7f37-46a9-839b-59d67fd286e2%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />