Millisecond Forums

trial number determined by list length

https://forums.millisecond.com/Topic33919.aspx

By nrouhani - 2/12/2022

hello, 

i'm running an experiment where one of the blocks shows images that participants previously categorized in a certain way (i.e., in a previous block if they had responded "1" that item gets appended into a list). the number of trials in a new block is determined by the number of items in this appended list. is there a way i can have trial number be contingent on the length of the list? or have the block "run out" once the trials have sampled all of the items on the list?

thank you
By Dave - 2/14/2022

nrouhani - 2/12/2022
hello, 

i'm running an experiment where one of the blocks shows images that participants previously categorized in a certain way (i.e., in a previous block if they had responded "1" that item gets appended into a list). the number of trials in a new block is determined by the number of items in this appended list. is there a way i can have trial number be contingent on the length of the list? or have the block "run out" once the trials have sampled all of the items on the list?

thank you

Yes, you can define a /stop condition in the <block> that triggers once the number of trials in the block reaches the list's itemcount.

https://www.millisecond.com/support/docs/v6/html/language/attributes/stop.htm

https://www.millisecond.com/support/docs/v6/html/language/properties/itemcount.htm