def FindLabel([PartyName], [PID]): Party, PID = [PartyName], [PID] YourLabel = '' if ',' in Party: Party = Party.split(',') YourLabel = Party[0].strip() + ', ' + Party[1].strip()[0:1] + '.' elif len(Party) > 13: YourLabel = Party[0:13] else: YourLabel = Party YourLabel = YourLabel + '\n' + PID return YourLabel
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.