I have two fields, "P_Area" and "PC_Area", whose sizes I'd like to compare in a third field, "Areas_Equal". The "Areas_Equal" field should contain a "Yes" if the other two are equal and a "No" if they aren't.
How can I do this with Field Calculator and its Python Parser?
Best Answer
If you're using Python in ArcGIS you may be using an
=
for comparison instead of an==
Your code should be similar to the below, if you use Python:
Pre-Logic Script Code - Check "Show Codeblock"
Then in the actual code: