Thread:Help talk:Properties and types/State to abbreviation

Ok, don't want to reinvent the wheel here, as I'm sure something like this has been done before. I have a property of State, which is set to whatever state based on the page name. I want to add on an if statement, like if State::Texas, then StateAbr::TX. I'm sure there has to be a better way than having 50 if statements on every page?