How do I refer to Null values in a field using an expression in Python?
I've tried using the following as well as = None and =Null but nothing has worked yet:
ScoreCondition = "Cond_Score(!"+Condition+"!)"
codeblock1 = """def Cond_Score(cond):
if cond > 90:
return 1
elif cond >= 71 and cond <= 90:
return 2
elif cond >= 51 and cond <= 70:
return 3
elif cond >= 20 and cond <= 50:
return 4
elif cond < 20:
return 5
elif cond is None:
return 1"""
==