Commparing string with array list?

I have an object (Object 1 for allusion) which encompasses an array list of extra object (Object 2 for allusion).

I want to recover a process in Object1 which will take a survey term as a restraint and will then reiterate over the array list of objects2. Over every reiteration, it will need to match the search term in contradiction of every adjustable the object has (It has 5 different variable). For eg :

inputs a search term, the system will then iterate through the array lists of objects. The first object in the array list, it will link the 5 variables of that article with the search term, and if there is any single competition it will print that object. It will then moves on to the second object in the array list and do the alike…

I’m not sure how to contrivance this in a nice legible way. The only way I can reason of is implementing several IF OR OR statements…

Any ideas ? Any help is appreciated, thanks!