I have an array of User objects with status as property in it.
Now i want to filter the objects using status it can either
Status: Waiting InProgress JustResearch NotInterested NotApplicable Intertested AlreadyBooked
one more property eligibility 10 20 30
let array = Array<User> // assuming this has array of user values
let filteredArray = array.filter { !$0.status.contains("Waiting") || !$0.status.contains("JustResearch") !$0.status.contains("AlreadyBooked") || !$0.eligibility.contains("20")}
I need something like above filteredArray should contain only user objects with InProgress, JustResearch,NotInterested and NotApplicable
I am getting an error while i am trying use filter as above how can apply filter with multiple conditions.