Hi,
I am having a massive problem with running this script in ArcGIS 10.3 Field Calculator Python
def Reclass(CLASS):
if CLASS=="2":
return "2a"
elif CLASS=="3"
return "3a"
else:
return (CLASS)
Any help much appreciated.
Thank you,
Marta
Solved! Go to Solution.
Try this:
def Reclass(CLASS):
if CLASS=="2":
return "2a"
elif CLASS=="3":
return "3a"
else:
return CLASS
Try this:
def Reclass(CLASS):
if CLASS=="2":
return "2a"
elif CLASS=="3":
return "3a"
else:
return CLASS
Hi Xander,
It is working now. I have not realised that the spacing is so important. Thank you
You are welcome, glad it works
If Xander's suggestion doesn't work, it would be helpful if you explain what exactly isn't working, including posting the error message(s).