Thank you for the response but I failed to mention that I am attempting to do this in Field Calculator
table = "XY" rows = arcpy.UpdateCursor(table) for row in rows: if row.field1 > row.field2: row.Num = row.field1 elif row.field1 < row.field2: row.Num = row.field2 rows.updateRow(row)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.