Group: Administrators
Posts: 13K,
Visits: 104K
|
You can list the "banned" IDs as a string in one or several <values> entries. Check whether a given ID is among those listed via string functions (contains() comes to mind), terminate the script if the ID is listed.
<values> / banned1 = ",ABC,DEF,GHI," / banned2 = ",123,456,789," / normalizedid = "" </values>
<expt> / onexptbegin = [values.normalizedid = toupper(concat(concat(",", script.subjectid), ",")); ] / onexptbegin = [if (contains(values.banned1, values.normalizedid)||contains(values.banned2, values.normalizedid)) script.abort(); ] / blocks = [1=myblock] </expt>
<block myblock> / trials = [1=mytrial] </block>
<trial mytrial> / stimulusframes = [1=mytext] / validresponse = (57) </trial>
<text mytext> / items = ("Your ID is not blacklisted.") </text>
|