I see, the code you provided in the previous post works greatly, which randomly presented one of the two target names from the pool. However, the baseline name that I want to select should always be different from the target name that I have presented already to the audience, which is a bit slightly different from the code that you provided. I have tried with different approach (please refer to the code below), but either the first item would not show up, or I cannot select the other name.
Thank you so much!!
<values>
/ targetname = ""
/ baselinename = ""
/ targetnameindex=0
</values>
<list pool1>
/ items = ("Akar", "Toma")
/ selectionrate = experiment
</list>
****Description of the target****
<item nomind>
/ 1 = "This target belongs to the group <%values.targetname%>."
/ 2 = "This <%values.targetname%> is brand-new."
/ 3 = "This <%values.targetname%> is durable."
/ 4 = "This <%values.targetname%> has different functions."
/ 5 = "This <%values.targetname%> has a pleasant scent."
/ 6 = "This <%values.targetname%> is light and handy."
/ 7 = "This <%values.targetname%> is mechanical."
/ 8 = "This <%values.targetname%> is automatic."
/ 9 = "This <%values.targetname%> is stationery."
</item>
<expt>
/ onexptbegin = [values.targetname = list.pool1.targetnameindex;values.baselinename=list.pool1.nextvalue]
/ blocks = [1=example]
</expt>
<block example>
/ trials = [1= targetdescriptiontrial;2=baselinedescriptiontrial]
</block>
<trial targetdescriptiontrial>
/ stimulusframes = [1=targetdescriptiontext]
/ validresponse = (57)
</trial>
<trial baselinedescriptiontrial>
/ stimulusframes = [1=baselinedescriptiontext]
/ validresponse = (57)
</trial>
<text targetdescriptiontext>
/ items = nomind
/ select = sequence
</text>
<text baselinedescriptiontext>
/ items = baseline
/ select = random
</text>
<item baseline>
/ 1 = "This target belongs to the group <%values.baselinename%>."
/ 2 = "This <%values.baselinename%> is brand-new."
/ 3 = "This <%values.baselinename%> is durable."
/ 4 = "This <%values.baselinename%> has different functions."
/ 5 = "This <%values.baselinename%> has a pleasant scent."
/ 6 = "This <%values.baselinename%> is light and handy."
/ 7 = "This <%values.baselinename%> is mechanical."
/ 8 = "This <%values.baselinename%> is automatic."
/ 9 = "This <%values.baselinename%> is stationery."
</item>