AnsweredAssumed Answered

arcpy.CalculateField_management ERROR:

Question asked by vonmoosa on Jun 19, 2018
Latest reply on Jun 22, 2018 by vonmoosa

I'm trying to display the value of 1 or 2 fields based on the input of another. 

 

arcpy.CalculateField_management(inPoints, fieldName10, "my_func(!RdType!, !Address!, !BENQUA! )", "PYTHON_9.3", "def my_func(val, fld1, fld2):\\n    if val in ('Pr'):\\n        return fld1 & " " & fld2\\n    else:\\n        return fld1")

Outcomes