I am attempting to write a simple script tool that looks at one field, and if it meets a specified value(s) then populate another field with a String. I plan to make the script a bit longer and more complex, as of now, the simple version (below) does not work. Any help is appreciated. Thank you.
BTW - I beleive my indentations are correct, but the script is not posting/displaying below the way I indented.
import sys, string, os, arcgisscripting
gp = arcgisscripting.create(9.3)
gp.OverWriteOutput = 1
#gp.workspace = "L:\\GIS\Layers\\Geodatabases\\Land_Use_Cover\\Districtwide_LULC_Analysis.mdb"
FC = sys.argv[1]
LEV2 = sys.argv[2]
UpdateField = sys.argv[3]
cur = gp.UpdateCursor(FC)
row = cur.Next()
while row:
if row.GetValue(LEV2) == 11:
row.SetValue(UpdateField,"Urban & Built-Up")
cur.UpdateRow(row)
row = cur.Next()
del cur
del row