Is it possible to target multiple targets but not all?

This is an option but it takes away the flexibility of being able to target multiple actors without modifying the code.