function(arcpy.fieldInfo.findFieldByName(!gesamt!))
def function(index): if (index > 30): ergebnis = (!Join_Count! + !Join_Count_1!) return ergebnis else: return 99
The fieldInfo object is a property of a Describe object. It's class definition is in the arcpy package, but you don't use it from there (how does arcpy know what layer you are referring to?). See the 1st example in the help.Try:arcpy.Describe(layer).fieldInfo.findFieldByName(!gesamt!))
arcpy.Describe(layer).fieldInfo.findFieldByName(!gesamt!))
function(arcpy.Describe(layer).fieldInfo.findFieldByName(!gesamt!), arcpy.Describe(layer).fieldInfo.findFieldByName(!Join_Count!), arcpy.Describe(layer).fieldInfo.findFieldByName(!Join_Count_1!)))
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.