Randomly assigning colors to texts


Author
Message
mariela
mariela
Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)Distinguished Member (2.8K reputation)
Group: Forum Members
Posts: 14, Visits: 25
Dear all,

I have another question in regards to my experiment:
In my experiment I have 4 blocks of stimuli items. Now I would like to randomly assign 1 of 4 colors to the blocks.

I tried to do this by defining a value label and then put the <%value.color_1%> into the elemtnes defining the text:

<values >
/ color_1=noreplace((10,10,0),(0,10,10),(10,0,10),(10,10,10))
</values>

<text A> 
/ items = A
/color = <%values.color_1%>
</text>

<text B>
/ items = B
/ color = <%values.color_1%>
</text>

<text C>
/ items = C
/color = <%values.color_1%>
</text>

<text D>
/ items = D
/color = <%values.color_1%>
</text>

Unfortunately this is not working. The message list errors tells me that "Expression '<%values.color_A%' is invalid. Expression contains a syntax error."
Can you help me with this task? Is it correct to assign colors by using the value-function?

Thank you so much in advance!!



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search