AnsweredAssumed Answered

Calculate Field to update a column based on not null in another column

Question asked by delwp_lg29 on Jan 21, 2019
Latest reply on Jan 21, 2019 by delwp_lg29

Calculate Fields

(i"m new to arcpy and arcgispro)

I'm attempting to use the Calculate Field to update a column based on non-null values in another column:

 

Expression:
UpdateLoc(!GAZETTED_LOCALITY_NAME!)

Code Block:
def UpdateLoc(nameGaz):
    if (nameGaz != none):
        return 'L'

 

(I've tried != NULL and IS NOT NULL as well) 

 

I'm not sure where I am going wrong here, I get '2 parameters are missing or invalid'

Outcomes