This may sound like a weird use for a list but I have found my self in need of a solution to this problem.
I have a list that contains property lists for keys in our software instead of iterating through all the items I was hoping there was a way to make this more efficient.
Example List:
set keyList to {
(key:"0",row:4,position:6),
(key:"1",row:3,position:6),
(key:"2",row:3,position:7),
(key:"3",row:3,position:8,special:true),
(key:"+",row:0,position:1,special:true),
(key:"-",row:1,position:1,special:true),
(key:"/",row:2,position:1,special:true)
}
I would like to be able to do something like this but I’ve tried a number of ways with no effect and im not even sure it is possible.
repeat with each item in keyList where the property of special is true
// do something here
end repeat
Any help here would be awesome!
Thank you,
Kyle