>>> print updateRow[updateRows.fields.index("HCB")] nanUnfortunatly nan is not a string but a float value... which is what the HCB field type is.>>> type(updateRow[updateRows.fields.index("HCB")]) <type 'float'>>>> updateRow[updateRows.fields.index("HCB")] == None FalsehcbValue = updateRow[updateRows.fields.index("HCB")]) if hcbValue == None: hcbValue = 0Solved! Go to Solution.
>>> math.isnan(updateRow[updateRows.fields.index("HCB")]) True>>> math.isnan(updateRow[updateRows.fields.index("HCB")]) True>>> updateRow[updateRows.fields.index("HCB")] in [float('nan'), str(1e400*0)]
Falsebut the math.isnan() works...