list syntax


Author
Message
nakayama
nakayama
Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)Guru (5.2K reputation)
Group: Forum Members
Posts: 72, Visits: 408
Hi, Mr. Dave.
I am wondering whether inquisit 4 can do this:
On the beginning of the block, list randomly select a number. How can we track down that number? Since at the end of that block, the number will decrease or increase by 1 from the one that was selected.
I use this syntax but doesn't work. Thank you for your concern!
<list selection>
/ selectionmode = random
/ items = (1,2,3,4,5,6,7,8,9,10)
</list>
<values>
/step=10
/count=list.selection
</values>

<block 1>
/ onblockbegin = [list.selection]
/ trials = [1= standard;2=target;3=question]
/ onblockend = [if(openended.question.correct)list.selection.currentvalue -=1 else list.selection.currentvalue +=1]
/ branch = [if (list.selection.currentvalue==10 && openended.question.correct) 0]
/ branch = [if(list.selection.currentvalue<10)block.1]
</block>
 Best,
nakayama
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search