Using ArcGIS 10.1 for Desktop, I try to calculate a field using an 'if' statement in the field calculator. Here is my code :
" #Expression MyField_2 = def Reclass(!MyField_1!) #Parser Python 9.3 #Code Block def Reclass(MyField1) : if MyField1 == -1 : return 0 else : return !shape.area! "
But I have an error returning !shape.area!. How can I fix that ?