I'm transitioning to QGIS from ArcGIS. I'm having trouble getting my python field calculator expressions to work in the QGIS advanced python field calculator.
I've gotten some syntax errors that I think I've worked out, but then I'm also getting some "NoneType" errors, which I have no idea what they mean. I'm assuming the "Global Expression [Optional]" block in QGIS is the same as the optional code block in ArcGIS?
What does a "NoneType" error mean?
Below I'll post a snippet of the code.
def getvalue( Exemption_Code, Ag_Value, Appraised_Value, TaxRate_Municipal, Exemption_Local_Homestead, Exemption_Local_O65, Exemption_Local_Disability, Exemption_Vet_3, Exemption_Vet_4 ) : if (Exemption_Code == '000') : value (Appraised_Value / 100) * TaxRate_Municipal elif (Exemption_Code == '002') : value (Ag_Value / 100) * TaxRate_Municipal elif (Exemption_Code == '004') : value 0 value = getvalue( <Exemption_Code>, <Ag_Value>, <Appraised_Value>, <TaxRate_Municipal>, <Exemption_Local_Homestead>, <Exemption_Local_O65>, <Exemption_Local_Disability>, <Exemption_Vet_3>, <Exemption_Vet_4> )