I have to write up a statement that will let me compare versions of something and return a specific letter/number. At the moment the version being passed is in the correct format (EX: if its version 14 its being passed to me as version D, which is what would need to be returned) but I also need to check to see if its not ANY of these 40ish results.
For instance if I get passed a 99999 as a version that’s not in our range of Versions we need to return, so I would have to return just an X. Is there an easy way to do this without needing to write out 40 if statements or switch cases?
You can use an array for this easily.