[solved] Referring to form variables later on
Hello,
I am building an experiment with 8 different subject conditions (2 x 2 x 2 design) but instead of assigning conditions using a modulo operation on the subject number I would rather have the experimenter check a few boxes at the beginning of the experiment to define the conditions. I thought I could do this by having a form with 3 rating scales, each with 2 nodes for the two options for each condition, and then with those choices saved as different variables I could run certain block orders depending on the value of the variables.
I've been trying to test this by just having the form (rating scales) in which I choose the conditions and then a sketchpad in which text appears only if certain conditions were chosen (I obviously want to do more than this, but this is where I'm starting). I've gotten this to work in the past with buttons, but I can't seem to get it to work with a rating scale.
I've pasted my script here: http://pastebin.com/yh7YmP7w
In the rating scales I've defined the variables for the three questions as resp1, resp2, and resp3, and the nodes are S;KS, S;KS, and A;B. My understanding is that the response variables are stored as 0 or 1 (since I only have 2 nodes each), and so if I choose "S" for the first question, resp1 should be set to 0. But at the end, in my sketchpad item, I have a show_if="[resp1]=0" and the text never shows up no matter how I respond to the rating scale questions. Does anyone know what I'm doing wrong? Thank you! (and FYI I am using version 2.8.1)
Jeff
Comments
...anybody? Has anyone been able to successfully call on variables defined from a ratings scale form?
hi
everything you did is fine except that sketchpad is created at the start of the exp /loop
and in your exp the sketch is created before the form
here is a new exp with a loop
http://pastebin.com/hhLRJmT2
Dror
Ah yes, that fixes it, thank you!