AnsweredAssumed Answered

Field Calculator Python - Comparing one field to the next

Question asked by BrokenLegMike on Apr 2, 2012
Latest reply on Apr 2, 2012 by BrokenLegMike
I have the following syntax in a coded block script in field calculator using python and a personal geodatabase feature class:

if !ECOSITE! == !ECOSITE_1!:     test = "Same" else:     test = "Inclusion"  COMPARE_FIELDS =  test


Maybe it's a Monday morning and I just can't seem to figure out why it's erroring out, but it is. I am getting one or 2 error numbers....the generic 999999 and another generic one 000989. Neither one of which are revealing why the calculator doesn't like my equation. Can anyone identify what it going wrong? I've also attached a screenshot of my field calculator.

Thanks,
Mike

[ATTACH=CONFIG]13186[/ATTACH]

Attachments

Outcomes