you are missing the example and the code block you used
perhaps you could just create a simple integer field and use something like
def compare(a, b):
"""compare 2 fields and return 0 for different, 1 otherwise"""
if a and b:
val = 1 if a == b else 0
return val
return Noneexpression compare(!a!, !b!) where `a` and `b` are your field names enclosed in ! marks
thank you Dan
it's really work 🙂
good,
perhaps you could go back and click Accept as Solution on my response