AnsweredAssumed Answered

If/Else do nothing

Question asked by CityOfGreenvilleSCGIS on May 17, 2018
Latest reply on May 18, 2018 by CityOfGreenvilleSCGIS

I'm trying to write a simple if/else statement where if the value isn't found, Arcmap keeps the current field value.  I've tried using the default python command of pass but it still overwrites the values to null.  Any advice?  Code from codeblock below.


def reclass(mystring):
      if (mystring == 'C-4'):
           return 'Central Business District'