I have 3 checkboxes that I will be using for search options. Now the user can select any number of them for searching. My question is: Is there a more convenient way to write out the logic for the search, rather than doing an if/else or boolean check for for every combination?
3 checkboxes isn't too bad, but I could see an issue with say 5+ checkboxes. Would there be a better way to implement a search function with multiple options?
Aucun commentaire:
Enregistrer un commentaire