I'm actually running it against a different field though so I don't want it to just return mystring, I should've stated that.
Here's what I want:
The field being calculated is field2
reclass(!field1!)
def reclass(mystring):
if (mystring == 'C-4'):
return 'Central Business District'
else:
return the existing value in field2 or just do nothing to field2
Does that make sense? Can I just define field2 in the codeblock and say if else return the value for field2?
Scott