Since you can choose which object you are looking at, you could probably say something along the lines of:
take snapshot;
int objectcount= how many objects are in snapshot;
for (0 to (objectcount - 1))
if size of object # is greater than x
add 1 to a list;
else
add 0 to a list;
if (the first int in list is 1)
printf("The first object has a size greater than x");
That is mostly pseudo code though, so you would have to figure out the commands and execution. I think that this code would work, but I haven’t had time to try it. It would also help to know exactly what you are trying to do.