I have a point file that has a field in it that lists all the streets at an intersection, eg) 1st St & A blvd & 2nd Ave etc
I want to be able to separate each street out individually into its own separate field.
I have some Python code I managed to field to use in field calculator that seems to work until it hits a field that doesnt have a 3rd street (and thus a third '&' symbol) so its erroring out.
How can I make it pass over these instances so it can run successfully? I think its erroring out on the 3rd passes when it comes across field with only 2 streets, eg 1st Ave & 2nd Ave
Code is below
def getField(inField): if inField is None: return None else: return inField.split(' & ') getField ( Names! )
This is basically what I want to do, a simple formula in excel seperates them, just trying to find the Python equivalent in ArcMAp