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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.