I would like to be able to use an if
statement that looks something like this:
if (input == Positive)
{
// Do something
}
To be actually doing something that looks like this:
if (input == "yes" ||input == "Yes" ||input == "YES" ||input == "Ya" ||input == "ya" (etc all the rest of positive words/ways to say yes))
{
// Do something
}
I was thinking I would keep my code in a static library (though I don't know much about them so feel free to correct me if there is a better way) so that I can access it from any future program I use and I don't have to copy-paste this same code over and over. Is there any way to do this? Or something similar to this?
Thanks very much in advance :)