combine variables


Author
Message
Guido K.
Guido K.
Partner Member (752 reputation)Partner Member (752 reputation)Partner Member (752 reputation)Partner Member (752 reputation)Partner Member (752 reputation)Partner Member (752 reputation)Partner Member (752 reputation)Partner Member (752 reputation)Partner Member (752 reputation)
Group: Forum Members
Posts: 5, Visits: 69
Dear forum,
while looking for a input-button-randomization we have problems to find the best solution. Subjects have to press the left or right button (perhaps "a" and "l") for right answer, randomly other have to press the switched buttons ("l" and "a").

/ onexptbegin = [values.left_right = round(rand(1,2))]

will bring a random value (1 or 2). Now we want to use the left_right-value to select the proper correctresponse. Therefore we use two lists (listname1 and listname2).

/ correctresponse = (list.listname1.nextvalue)
works, but we want to change the "1" in "listname" for the other condition into "2" like this:

/ correctresponse = (list.listname<%values.left_right%>.nextvalue)

will not work! How it's possible to use and combine variables (values) in Inquist? What is the different between values and variables?

Best

Guido



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Guido K. - 11 Years Ago
Dave - 11 Years Ago
Guido K. - 11 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search