I want to assign an int value to strings such that if
"apple" = 1, "banana" = 2
I can do something like
intToStr(1) = "apple"
or
StrToInt("banana") = 2
I know I can do this by using switch statements, but I heard using too many switch statements is not ideal. Would it be okay to use a bunch of switch statements? if not, what would be the best way to do this kind of mapping?