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)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.