I want to add the field BENQUA after the text in the ADD_FULL field if RdType = PR and I want to leave ADD_FULL field alone if RdType doesn't = PR. I'm having trouble figuring out the correct way to get this working. Can anyone help?
if val == 'PR':# for 'PR', 'ETC' and moreif val in ('PR', 'ETC'):
I've tested the code below with no luck.
def my_func(val, fld1, fld2): if val is ('PR'): return fld1 + " " + fld2 else: return fld1 my_func(!RdType!, !ADD_FULL!, !BENQUA!)
Retrieving data ...