I'm trying to run a field calculation using multiple fields in a table as well as independent numeric values with python code in the field calculator window. I've included the first 7 lines of the code below. I'm not getting any syntax errors, but I'm also not getting any results. The other fields used as variables include: Appraised_Value, Ag_value, and TaxRate_Municipal Not sure how to fix it.
Pre-Logic Script Code:
def Reclass( Exemp_Code_Int ) :
if (Exemp_Code_Int == '0') :
return (Appraised_Value / 100) * TaxRate_Municipal
elif (Exemp_Code_Int == '2') :
return (Ag_Value / 100) * TaxRate_Municipal
elif (Exemp_Code_Int == '4') :
return 0
Codeblock looks like this:
Reclass( !Exemp_Code_Int! )

!field_name!. In your current method, they are not in scope.