excludeFromList function

Exclude variables from a list of objects of the same type