I am making a simple program where if you type 'north' it will subtract a number from your stamina. I got that too work, but there are a lot of possible input to represent 'north' you can have 'no', 'n','NORTH','NoRtH' as you can see this gets tedious after a while, if I have to create an if statement for each and every single possible variation of the word north, and not to mention the other directions I want to use, it won't look nice
I was wondering is there a way to be able to store all those possible variations of that word into something, and when when I make an if statement, it directs it to that storage unit to compare with all possible variations... because I just know that if i make 40+ if and else if statements to compare the users input with all those variations, the code will get ugly and fast.