Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 6
»
Removing or adding multiple items in list at one time
Removing or adding multiple items in list at one time
Post Reply
Like
2
Removing or adding multiple items in list at one time
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Andrew Papale
Andrew Papale
posted 7 Months Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 62,
Visits: 230
Dear Inquisit Team,
Is it possible to append or remove more than one item to a list at a time?
e.g. This script compiles and runs but does not append (1,2,5) to the list.
<expt main1>
/ blocks =[
1 = experiment;
]
</expt>
<block experiment>
/ trials = [
1 = test_list;
]
</block>
< trial test_list>
/ ontrialbegin = [
list.test_list.appenditem(1,2,5);
]
/ stimulusframes = [1 = test_list]
/ timeout = 5000;
</trial>
<text test_list>
/ items = ("<%list.test_list.items.1%> <%list.test_list.items.2%> <%list.test_list.items.3%>")
/ position = (50%, 50%)
/ size = (50%, 50%)
</text>
<list test_list>
/ items = ()
</list>
Reply
Like
2
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Removing or adding multiple items in list at one time
AndrewPapale
-
7 Months Ago
> Is it possible to append or remove more than one item to a list...
Dave
-
7 Months Ago
Excellent, I did not know loops were an option! Can I use a for loop...
AndrewPapale
-
7 Months Ago
No, there are only while() loops in Inquisit 6. However, every...
Dave
-
7 Months Ago
Here's what I was trying to do, if it is useful to anyone looking,...
AndrewPapale
-
7 Months Ago
values.i < 10 should be values.i < list.a.itemcount
AndrewPapale
-
7 Months Ago
Post Reply
Like
2
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search