Put the all the objects you want to do stuff to, inside of a object list. To make a list, create a new world level variable and click the list checkbox. Now drag the "for all together" statement (where the "if" and other statements are) and drag it in. Now drag your list variable into the empty space in the "for all together"'s parameter. There should be something that appears like "item_from_
list" in the for statement. Drag that in the "for all together" statement to refer to all objects in the list. If you want, I can post an example world if you don't understand.