and if you want to use your code block, you don't include the …. Expression : nor the Code block lines,
Underneath Type (which is the field you are trying to calculate values for, you put the expression in there
Type:
----------------------------------
UpdateLoc(!GAZETTED_LOCALITY_NAME!)
Then in the code block section
Code Block
----------------------------
def UpdateLoc(nameGaz):
if nameGaz is not None:
return 'L'
return None
code blocks and expression lines take a bit of getting used to.
If you reuse and expression a lot, you can save them a *.cal files, and then reload them