Hi Dave,
Thank you for your helpful reply!
I was trying to use the /not function in list element, hoping it could successfully implement the second constraint. My logic was that I would like to assign a value when a Likert trial ends, depending on which question was asked. And in the subsequent trial, the Likert of the same value will be excluded from selection, so that the same question will not appear back-to-back.
But I was puzzled by the fact that it still did not work. Do you have an idea why using the /not function in such a way did not work? Is there really no way to implement two constraints? Thank you!
(Below is part of the script with the main edits in bold font. I have also attached the full script.)
<trial target1>
/ validresponse = (0)
/ trialduration = 0
/ recorddata = false
/ branch = [list.target1_trials.nextvalue]
</trial>
<list target1_trials>
/ items = (likert.target1_attractive, likert.target1_trustworthy, likert.target1_moral, likert.target1_like, likert.target1_getalong, likert.target1_intelligent, likert.target1_competent)
/ selectionmode = random
/ not = [(values.judgment_number)]/ replace = false
</list>
<likert target1_attractive>
/ ontrialbegin = [values.trialcount_target1 +=1]
/ ontrialbegin = [if (values.trialcount_target1 == 1) {values.information_books_code_target1 = list.information_books_code.nextvalue;
values.information_partners_code_target1 = list.information_partners_code.nextvalue;
values.information_exercise_code_target1 = list.information_exercise_code.nextvalue}]
/ ontrialbegin = [if (values.trialcount_target1 > 1) {values.information_books_code_target1 = values.information_books_code_target1;
values.information_partners_code_target1 = values.information_partners_code_target1;
values.information_exercise_code_target1 = values.information_exercise_code_target1}]
/ stimulustimes = [0 = fixation; 500 = picture_target1; 1000 = blank, information_books_target1, information_partners_target1, information_exercise_target1; 3000 = blank, prompt, attractive]
/ pretrialpause = 000
/ posttrialpause = 000
/ anchors = [1="Not at all"; 2 = ""; 3 = ""; 4 = ""; 5 = ""; 6 = ""; 7 = "Extremely"]
/ anchorwidth = 15%
/ numpoints = 7
/ position = (50%, 60%)
/ ontrialend = [values.judgment_number = 1]</likert>
<likert target1_trustworthy>
/ ontrialbegin = [values.trialcount_target1 +=1]
/ ontrialbegin = [if (values.trialcount_target1 == 1) {values.information_books_code_target1 = list.information_books_code.nextvalue;
values.information_partners_code_target1 = list.information_partners_code.nextvalue;
values.information_exercise_code_target1 = list.information_exercise_code.nextvalue}]
/ ontrialbegin = [if (values.trialcount_target1 > 1) {values.information_books_code_target1 = values.information_books_code_target1;
values.information_partners_code_target1 = values.information_partners_code_target1;
values.information_exercise_code_target1 = values.information_exercise_code_target1}]
/ stimulustimes = [0 = fixation; 500 = picture_target1; 1000 = blank, information_books_target1, information_partners_target1, information_exercise_target1; 3000 = blank, prompt, trustworthy]
/ pretrialpause = 000
/ posttrialpause = 000
/ anchors = [1="Not at all"; 2 = ""; 3 = ""; 4 = ""; 5 = ""; 6 = ""; 7 = "Extremely"]
/ anchorwidth = 15%
/ numpoints = 7
/ position = (50%, 60%)
/ ontrialend = [values.judgment_number = 2]</likert>
<likert target1_moral>
/ ontrialbegin = [values.trialcount_target1 +=1]
/ ontrialbegin = [if (values.trialcount_target1 == 1) {values.information_books_code_target1 = list.information_books_code.nextvalue;
values.information_partners_code_target1 = list.information_partners_code.nextvalue;
values.information_exercise_code_target1 = list.information_exercise_code.nextvalue}]
/ ontrialbegin = [if (values.trialcount_target1 > 1) {values.information_books_code_target1 = values.information_books_code_target1;
values.information_partners_code_target1 = values.information_partners_code_target1;
values.information_exercise_code_target1 = values.information_exercise_code_target1}]
/ stimulustimes = [0 = fixation; 500 = picture_target1; 1000 = blank, information_books_target1, information_partners_target1, information_exercise_target1; 3000 = blank, prompt, moral]
/ pretrialpause = 000
/ posttrialpause = 000
/ anchors = [1="Not at all"; 2 = ""; 3 = ""; 4 = ""; 5 = ""; 6 = ""; 7 = "Extremely"]
/ anchorwidth = 15%
/ numpoints = 7
/ position = (50%, 60%)
/ ontrialend = [values.judgment_number = 3]</likert>
<likert target1_like>
/ ontrialbegin = [values.trialcount_target1 +=1]
/ ontrialbegin = [if (values.trialcount_target1 == 1) {values.information_books_code_target1 = list.information_books_code.nextvalue;
values.information_partners_code_target1 = list.information_partners_code.nextvalue;
values.information_exercise_code_target1 = list.information_exercise_code.nextvalue}]
/ ontrialbegin = [if (values.trialcount_target1 > 1) {values.information_books_code_target1 = values.information_books_code_target1;
values.information_partners_code_target1 = values.information_partners_code_target1;
values.information_exercise_code_target1 = values.information_exercise_code_target1}]
/ stimulustimes = [0 = fixation; 500 = picture_target1; 1000 = blank, information_books_target1, information_partners_target1, information_exercise_target1; 3000 = blank, prompt, like]
/ pretrialpause = 000
/ posttrialpause = 000
/ anchors = [1="Not at all"; 2 = ""; 3 = ""; 4 = ""; 5 = ""; 6 = ""; 7 = "Extremely"]
/anchorwidth = 15%
/ numpoints = 7
/ position = (50%, 60%)
/ ontrialend = [values.judgment_number = 4]</likert>
<likert target1_getalong>
/ ontrialbegin = [values.trialcount_target1 +=1]
/ ontrialbegin = [if (values.trialcount_target1 == 1) {values.information_books_code_target1 = list.information_books_code.nextvalue;
values.information_partners_code_target1 = list.information_partners_code.nextvalue;
values.information_exercise_code_target1 = list.information_exercise_code.nextvalue}]
/ ontrialbegin = [if (values.trialcount_target1 > 1) {values.information_books_code_target1 = values.information_books_code_target1;
values.information_partners_code_target1 = values.information_partners_code_target1;
values.information_exercise_code_target1 = values.information_exercise_code_target1}]
/ stimulustimes = [0 = fixation; 500 = picture_target1; 1000 = blank, information_books_target1, information_partners_target1, information_exercise_target1; 3000 = blank, prompt, getalong]
/ pretrialpause = 000
/ posttrialpause = 000
/ anchors = [1="Not at all"; 2 = ""; 3 = ""; 4 = ""; 5 = ""; 6 = ""; 7 = "Extremely"]
/anchorwidth = 15%
/ numpoints = 7
/ position = (50%, 60%)
/ ontrialend = [values.judgment_number = 5]</likert>
<likert target1_intelligent>
/ ontrialbegin = [values.trialcount_target1 +=1]
/ ontrialbegin = [if (values.trialcount_target1 == 1) {values.information_books_code_target1 = list.information_books_code.nextvalue;
values.information_partners_code_target1 = list.information_partners_code.nextvalue;
values.information_exercise_code_target1 = list.information_exercise_code.nextvalue}]
/ ontrialbegin = [if (values.trialcount_target1 > 1) {values.information_books_code_target1 = values.information_books_code_target1;
values.information_partners_code_target1 = values.information_partners_code_target1;
values.information_exercise_code_target1 = values.information_exercise_code_target1}]
/ stimulustimes = [0 = fixation; 500 = picture_target1; 1000 = blank, information_books_target1, information_partners_target1, information_exercise_target1; 3000 = blank, prompt, intelligent]
/ pretrialpause = 000
/ posttrialpause = 000
/ anchors = [1="Not at all"; 2 = ""; 3 = ""; 4 = ""; 5 = ""; 6 = ""; 7 = "Extremely"]
/ anchorwidth = 15%
/ numpoints = 7
/ position = (50%, 60%)
/ ontrialend = [values.judgment_number = 6]</likert>
<likert target1_competent>
/ ontrialbegin = [values.trialcount_target1 +=1]
/ ontrialbegin = [if (values.trialcount_target1 == 1) {values.information_books_code_target1 = list.information_books_code.nextvalue;
values.information_partners_code_target1 = list.information_partners_code.nextvalue;
values.information_exercise_code_target1 = list.information_exercise_code.nextvalue}]
/ ontrialbegin = [if (values.trialcount_target1 > 1) {values.information_books_code_target1 = values.information_books_code_target1;
values.information_partners_code_target1 = values.information_partners_code_target1;
values.information_exercise_code_target1 = values.information_exercise_code_target1}]
/ stimulustimes = [0 = fixation; 500 = picture_target1; 1000 = blank, information_books_target1, information_partners_target1, information_exercise_target1; 3000 = blank, prompt, competent]
/ pretrialpause = 000
/ posttrialpause = 000
/ anchors = [1="Not at all"; 2 = ""; 3 = ""; 4 = ""; 5 = ""; 6 = ""; 7 = "Extremely"]
/ anchorwidth = 15%
/ numpoints = 7
/ position = (50%, 60%)
/ ontrialend = [values.judgment_number = 7]</likert>