I wrote an if elif statement that will loop through records (field A) and populate a new field (field B) based on A's contents.
Field A name is 'CLASS'. Field B is 'class_desc'.
reclass(!class_desc!,!CLASS!) def reclass(class_desc, CLASS): if CLASS == '100': return "100 - Agricultural" if CLASS == '105': return "105 - Agricultural Vacant Land (Productive)" elif CLASS == '110': return "110 - Livestock and Products" elif CLASS == '111': return "111 - Poultry and Poultry Products: eggs, chickens, turkeys, ducks and geese" elif CLASS == '112':
This 'completes successfully' but does not fill field B.
What am I doing wrong?
Obviously there is something fundamental that I cant get through my head about functions syntax.