Problem with constrain command
I am attempting to create a sustained-attention-to-response task (SART). The SART consists of 9-trial blocks in which a single digit (1-9) is randomly presented, with the constraint that each digit is presented only once per block. The digits are presented in one of five possible type sizes, with the constraint that no type size appears more than twice per block.
I have created a loop representing all 45 possible combinations of digits and type sizes. I want to randomly present 9 combinations of digits and type sizes per 9 trial block. To implement this, I have added the following constraints to the OpenSesame script:
constrain digit maxrep=1
constrain font_size maxrep=2
But, even with these constraints added, digits are appearing more than once and font sizes more than twice per block.
I feel that I must be missing something obvious either in the use of the constrain commands or in some other settings for the loop items, but even after trying multiple possible solutions and watching the relevant tutorials I can't figure out the issue!
Any help would be most greatly appreciated. I've attached the script for reference.
Thank you for your development and support of this great tool!