listing variables as list items


Author
Message
jamieward
jamieward
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 8, Visits: 30
I am wanting to use variables as list items, along the lines of the following code but in which the variable will be dynamically defined by the user.  Whenever I try to run the code it tells me that it wants double quotes for the items.  That is, it doesn't seem to realise that these are text variables.

Any suggestions?
Jamie

<values>
/self_shape = "a.bmp"
/friend_shape = "b.bmp"
/stranger_shape = "c.bmp"
/currentstim=0
</values>

<item  shape>
/1 = values.self_shape
/2 = values.friend_shape
/3 = values.stranger_shape
/4 = values.self_shape
/5 = values.friend_shape
/6 = values.stranger_shape
/7 = values.friend_shape
/8 = values.self_shape
/9 = values.self_shape
/10 = values.stranger_shape
/11 = values.stranger_shape
/12 = values.friend_shape
</item>

<picture display_shape>
/items = shape
/select = values.currentstim
/position = (50%, 25%)
</picture>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search