def format_permit_no(x): if len(x) > 5: return x if x.startswith('MG') else 'XYZ' else: return ('%5s' % x). replace(' ', '0')
format_permit_no(!AccountInfo_PERMIT_NO!)
ElseIf left([AccountInfo_PERMIT_NO],2) = "MG" Then
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.