HOW TO
The instructions provided describe how to calculate fields based on the input of two other fields in ArcMap. In this example, a Python code is used to calculate new values for a field based on the residential and commercial unit fields. A new field is created in the attribute table to indicate whether the input fields match and identify the values that do not match.
In the figure below, two of the rows of the attribute table have residential and commercial unit values that do not match, and the other two rows have matching values.
def calc(field1 , field2 ): if field1 == field2 : return 'Yes' else: return 'No'
calc( !Field1! , !Field2! )
Article ID: 000018601
Get help from ArcGIS experts
Download the Esri Support App
You can also download the app to access the chatbot anytime! Download it now.