This question already has an answer here:
In ArcGIS Desktop 10.1 I created a new field to explain some zoning codes in an attribute Table. I basically want the new field "Zone" to have a string value based on the field "Zoning".
For example if the "Zoning" field value is "AG" then the corresponding "Zone" field should be "Agricultural".
I can do this easily in an Excel Sheet and bring it back to a Layer by a join, But I really want to know if there is a way to do this either with Python or VBScript using the Field Calculator.
The code may be something similar top the one below.
If [Zoning] = "AG" Then [Zone]= "Agricultural"