Integrated Application Platform › Forums › General › counting based on more than two members of an object from inside a loop › Reply To: counting based on more than two members of an object from inside a loop
February 13, 2015 at 7:39 am
#1150
Keymaster
I am not sure exactly what you are looking for.
Your lines of code look valid (except you have extra opening parenthesis)
You could use the “functional” methods like object.Filter and object.Count or the combined object.CountIf
e.g. n = rows.CountIf({ it[test1] is true and it[test2] is true })
There is no shortcut to output a list of objects to a database table. It would be easy to write something that used a loop. If you have the data in memory it will be faster to process it there.
I hope that helps.