This is probably a question that has been around for 20 years, but I'm going to ask anyway. I have a screen that has multiple search options. Some can be combined. Some are exclusive.
Ex:
Search by first and last name
OR
Search by age
What is the best way to handle this? Do I handle this in the app and either call 1 of many functions or 1 fucntion with a whole bunch of if/else's. Doing a series of if/else's just seems so outdated. Isn't ther a more efficient way?