I've got a script that gets an index from a website, and then utilizes a .ini file to convert that number 1-50 into a US state code. I'd like to put it into the script to avoid an external file, however it seems a little tedious to do 50 If statements..such as this:
Code: Select all
If (Number = 1)
State = AK
If (Number = 2)
State = AZ
If (Number = 3)
State = AR
If (Number = 4)
.......
Thanks,
Vh_