Skip to main content
Became Hot Network Question
edited tags
Link
Bera
  • 77.7k
  • 14
  • 78
  • 187
Code display edit.
Source Link
TomazicM
  • 27k
  • 23
  • 31
  • 42

I'm trying to use the field calculator to poplulate a string field in a table based on info in another string field. This is what I have:

def Reclass(Correction_Comments): if (MSAGSTREETNAME) = 'HEMLOCK': return 'IN PARCEL 103'

def Reclass(Correction_Comments):
     if (MSAGSTREETNAME) = 'HEMLOCK':
         return 'IN PARCEL 103'

In the call box:

Reclass( !Correction_Comments!)

Reclass( !Correction_Comments!)

I keep getting a parsing error. What's wrong?

I'm trying to use the field calculator to poplulate a string field in a table based on info in another string field. This is what I have:

def Reclass(Correction_Comments): if (MSAGSTREETNAME) = 'HEMLOCK': return 'IN PARCEL 103'

In the call box:

Reclass( !Correction_Comments!)

I keep getting a parsing error. What's wrong?

I'm trying to use the field calculator to poplulate a string field in a table based on info in another string field. This is what I have:

def Reclass(Correction_Comments):
     if (MSAGSTREETNAME) = 'HEMLOCK':
         return 'IN PARCEL 103'

In the call box:

Reclass( !Correction_Comments!)

I keep getting a parsing error. What's wrong?

Source Link

Using If statements to conditionally populate a field in Field Calculator

I'm trying to use the field calculator to poplulate a string field in a table based on info in another string field. This is what I have:

def Reclass(Correction_Comments): if (MSAGSTREETNAME) = 'HEMLOCK': return 'IN PARCEL 103'

In the call box:

Reclass( !Correction_Comments!)

I keep getting a parsing error. What's wrong?