masherinc
✅ Check a param againstt a string
I'm creating a sort of Animal Dictionary and I need help with check if the name param in the AddToSearchHistory() method matches the Labels() name param. Of course I could do what I'm doing now and check against a certain string, but I'm creating a dictionary and I would have to check against alot of strings. I could also evoke the AddToSearchHistory() method to the labels() if statement, but I'm pretty sure that would cause a big file. I've tried making the Labels() params public, but that just caused my whole programm to break. Any Suggestions? https://pastebin.com/5nh89DD2
5 replies