I wrote an expression/codeblock that removes the words "Nearby:" from the field value string if it has it.
Codeblock:
import stringdef splitme(s): if s[:7] == "Nearby:": aList = string.split(s, ":") return aList[1] else: passExpression:
splitme(!Street1!)
It removes "Nearby:" on all fields that contain it in the string but it also deletes the strings in the field records that are fine and do not contain "Nearby:". I thought the if/else check would handle this.
أكثر...
Codeblock:
import stringdef splitme(s): if s[:7] == "Nearby:": aList = string.split(s, ":") return aList[1] else: passExpression:
splitme(!Street1!)
It removes "Nearby:" on all fields that contain it in the string but it also deletes the strings in the field records that are fine and do not contain "Nearby:". I thought the if/else check would handle this.
أكثر...