I'm using the Field Calculator .replace function to replace WEST, EAST, NORTH, SOUTH to W, E, N and S and I'm using 4 scripts !PREDIR!.replace("WEST*","W")
and so forth.
I would like to use one string to do this, how can I do this?
arcgis-10.2arcgis-desktopfield-calculatorpython-parser
I'm using the Field Calculator .replace function to replace WEST, EAST, NORTH, SOUTH to W, E, N and S and I'm using 4 scripts !PREDIR!.replace("WEST*","W")
and so forth.
I would like to use one string to do this, how can I do this?
Best Answer
You can try this:
Predir field has already North, South, East, West