I'm attempting to create quick code that simply assigns a gps coordinate to a certain station on the map. Here's my current code Pre-logic script code:
def update_nones(lat,bay_statio):
if bay_statio=="apalachicola0":
return 29.733333
elif bay_statio == "apalachicola1":
return 29.7583008
else:
return lat
lat=
update_nones(!lat!,!bay_statio!)
For some reason I keep receiving an error in the geo-processing window. The code works with one condition but once I had the elif statement it refuses to compile.
Any ideas?