mjessen

Python in Field Calculator

Discussion created by mjessen on Feb 2, 2014
Latest reply on Feb 2, 2014 by mjessen
Hello,

i try to use the index position of a field for an if-clause in the field calculator.

gesamt =
function(arcpy.fieldInfo.findFieldByName(!gesamt!))


Codeblock:
def function(index):
 if (index > 30):
  ergebnis =  (!Join_Count! + !Join_Count_1!)
  return ergebnis
 else:
  return 99


Result:
[ATTACH=CONFIG]31051[/ATTACH]

This way or syntax is probably totaly wrong and i am grateful for any advise or solution.

Thank you

Attachments

Outcomes