Dennis_Gookin

Converting VB .cal into Python for Field Calulator

Discussion created by Dennis_Gookin on Jul 22, 2011
Latest reply on Jul 25, 2011 by Dennis_Gookin
My company is finally switching from ArcGIS 9.3 to ArcGIS 10.  I am testing our process and have figured out how to change simple calculations we used before into Python, but don't know enough to figure out this Else If Statement.  If someone could help it would be much appreciated.

This was in the Pre-Logic Script Code box:


Dim Class As String
Dim Output As String

Class = [FUNC_CLASS]
Output = [FCC]

If Class = "1" OR Class = "2" Then
   Output = "A15"
ElseIf Class = "3" Then
                                 Output = "A20"
ElseIf Class = "4" Then
                                 Output = "A30"
ElseIf Class = "5" Then
                                 Output = "A40"
End If



And this was in the box below with FCC= being the header (not in the box)


FCC=
Output

Outcomes