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
3
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 2 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 66,
Visits: 233
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
3
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
-
2 Years Ago
> Is it possible to append or remove more than one item to a list...
Dave
-
2 Years Ago
Excellent, I did not know loops were an option! Can I use a for loop...
AndrewPapale
-
2 Years Ago
No, there are only while() loops in Inquisit 6. However, every...
Dave
-
2 Years Ago
Here's what I was trying to do, if it is useful to anyone looking,...
AndrewPapale
-
2 Years Ago
values.i < 10 should be values.i < list.a.itemcount
AndrewPapale
-
2 Years Ago
Post Reply
Like
3
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search