Solved! Go to Solution.
def concatFields( field1, field2 ): digits = str(field1)[-4:] code = str(field2) return int(code + digits)
concatFields( !ObjectNums!, !Field1!)
def concatFields( field1, field2 ): digits = str(field1)[-4:] code = str(field2) return int(code + digits)
concatFields( !ObjectNums!, !Field1!)
def concat(field1, field2): if field1 >= 0 and field1 < 10: object = str("000") + str(field1) return str(field2) + str(object) if OID > 9 and field1 < 100: object = str("00") + str(field1) return str(field2) + str(object) if OID > 99 and field1 < 1000: object = str("0") + str(field1) return str( field2) + str(object) else: object = str(field1) return str(field2) + str(object)
concat( !FID!, !digit! )
def concatFields(Field1, ObjNum): prefix = str(Field1) suffix = str(ObjNum).zfill(4) return int(prefix + suffix)