<div dir="ltr">Hi,<br>how do I access the "Respond.RESP" variable on an attribute level in the attribute list of the GUI? <br>Even if I put "c.SetAttrib "response.RESP", response.RESP" as an input object before that I only get the text "Respond.RESP" as a prime and not the actually user input which should be used. It must be so easy...but I at this moment I can only access the user input in the prime object itself with [Response.RESP], but I have multiple conditions for user input so thats not doable.<br>Thanks! <br><br>Am Donnerstag, 19. Mai 2011 11:56:14 UTC-4 schrieb David McFarlane:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Tobias,<p>At 5/18/2011 11:04 AM Wednesday, you wrote:<br>>I want to use the keyboard input from a slide as a variable. Usually,<br>>it is only available as an attribute.</p><p>Just to make sure this is clear, this statement is incorrect. In <br>fact, it is just the other way around -- usually, response <br>information is available only as a variable (or more properly <br>speaking, as a property of an object variable). As Paul Groot has <br>already explained, response information becomes available as <br>attributes only when logging of that information has been set, or <br>when you add inline to do so explicitly, e.g., c.SetAttrib <br>"Respond.RESP", Respond.RESP.</p><p>>For example, if the slide is<br>>called "Respond", the input during that slide would be available as<br>>Respond.RESP. I can then use it in code like this: "if<br>>c.getattrib("Respond.RESP") = x then ...." and so on. It is however<br>>much handier to have it as a variable. Any idea how to realise that?</p><p>So, if you have a stimulus object called, say, StimSlide, and have <br>attached an input mask to StimSlide, then response data will <br>automatically be available as properties of the StimSlide object <br>variable, e.g., StimSlide.RESP, StimSlide.RT, etc. You need do <br>nothing more. And in that case, you could implement your example <br>code simply with</p><p>If (StimSlide.RESP = x) Then ....</p><p>etc. -- i.e., same as before, just strip out the surrounding <br>c.GetAttrib("..."). If you then also want those properties available <br>as attributes, you need to enable logging for the desired properties <br>or add inline code as indicated above.</p><p>-- David McFarlane, Professional Faultfinder</p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p></blockquote></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/508afc44-4283-4f0b-82ce-05f67b86d9cc%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/508afc44-4283-4f0b-82ce-05f67b86d9cc%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 />