If you regroup all the possibly moving objects in a family and make the "IsSelected" (make it a boolean variable by the way) a family instance variable.
This way, you check for the instance of the object type member of the family that "IsSelected" and in a single condition you are only picking one instance of one object type.