"For each Object" is used to select an object by searching in all objects and pick one that matches it's filters. And it has filters to say what type the object should be (line, rectangle, whatever) and also what color. Also I recommend to set "Not more than..." to 1.
Then in "Condition" go to Object on the chart. There in "Object source" select "Picked by loop" and select Price level 1. This should return one of both prices and it can be compared with Candle Close, Ask, Bid or something else. The same goes for Price level 2.
It becomes more complex if you want to work with multiple objects, then "For each Object" must have empty "Not more than" to not stop when the first matched object was found, and have some Variable to set it to true if for any object conditions were true.
