asking participants for textcolor depending on what textcolor was used


asking participants for textcolor depending on what textcolor was used...
Author
Message
AchimS
AchimS
Associate Member (180 reputation)Associate Member (180 reputation)Associate Member (180 reputation)Associate Member (180 reputation)Associate Member (180 reputation)Associate Member (180 reputation)Associate Member (180 reputation)Associate Member (180 reputation)Associate Member (180 reputation)
Group: Forum Members
Posts: 13, Visits: 102
Hi everyone,

for my stroop-like task I display sentences word-by-word where the last word of a sentence always has a certain color (1 of 4). In the next window I ask the participants for a certain color. (E.g. "was the textcolor of the last word green?".) At the end of the task, the right answer should be 50% "yes" and 50% "no", that's why I can't just ask for a random color undependent of the actual textcolor that was shown. I tried to solve this with /onprepare to select a certain item ("blue?", "violet?", "red?", "green?") depending on what actual color the last word had. For the right distribution of textcolor and the following question-items I made up lists that specify textcolor and the following question for each item and wrote expressions for each color, to connect these. Displaying the right textcolor is working, but the question afterwards is still chosen randomly.
Has anyone an idea how to manage this?
Thank you very much in advance!



Here is the relevant part of my code and the whole file if needed (which is pretty messy I think, sorry for that)

<text q>
/ items = ("Blau?","Violet?","Rot?","Grün?")
/ position = (50%, 30%)
/ erase = false
/ fontstyle = ("Arial", 5.00%, false, false, false)
/ onprepare = [
    if (item.qcolorstroop.item(list.RFstroop.currentvalue)=="1") text.q.selectedindex=="1";
    if (item.qcolorstroop.item(list.RFstroop.currentvalue)=="2") text.q.selectedindex=="2";
    if (item.qcolorstroop.item(list.RFstroop.currentvalue)=="3") text.q.selectedindex=="3";
    if (item.qcolorstroop.item(list.RFstroop.currentvalue)=="4") text.q.selectedindex=="4";
    
]
</text>

<item RFstroop>
/    1    =    "    1    "
/    2    =    "    2    "
/    3    =    "    3    "
/    4    =    "    4    "
/    5    =    "    1    "
/    6    =    "    2    "
/    7    =    "    3    "
/    8    =    "    4    "
/    9    =    "    1    "
/    10    =    "    2    "
/    11    =    "    3    "
/    12    =    "    4    "
/    13    =    "    1    "
/    14    =    "    2    "
/    15    =    "    3    "
/    16    =    "    4    "
/    17    =    "    1    "
/    18    =    "    2    "
/    19    =    "    3    "
/    20    =    "    4    "
...

<item qcolorstroop>
/    1    =    "    1    "
/    2    =    "    1    "
/    3    =    "    3    "
/    4    =    "    3    "
/    5    =    "    2    "
/    6    =    "    2    "
/    7    =    "    4    "
/    8    =    "    4    "
/    9    =    "    1    "
/    10    =    "    1    "
/    11    =    "    3    "
/    12    =    "    3    "
/    13    =    "    2    "
/    14    =    "    2    "
/    15    =    "    4    "
/    16    =    "    4    "
/    17    =    "    1    "
/    18    =    "    1    "
/    19    =    "    3    "
/    20    =    "    3    "
...

<expressions>
/ bluestroop = if (values.winend==expressions.inputend && item.RFstroop.item(list.stroop.currentvalue) == "1") text.mywindow.textcolor=blue else if (values.winend!=expressions.inputend) text.mywindow.textcolor=black
</expressions>

Attachments
FakeNews_a_colors.iqx (173 views, 103.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search