Here is an idea:
for (int i = 0; i< list.count(); i++){
if (list.at(i).some_variable1 == some_variable2){ do some_thing; }
}