Solved! Go to Solution.
def FindLabel ( [ANAME], [ACRE_FLT] ): if float ( [ACRE_FLT] ) >=41: S = [ANAME] S = S.split(',') return S
string = 'value1,value2' #string.split(',')[0] will return 'value1' #string.split(',')[1] will return 'value2'
def FindLabel ( [ANAME], [ACRE_FLT] ): if float ( [ACRE_FLT] ) >=41: S = [ANAME] S = S.split(',') S = S[0] + ',\n' + S[1] return S
def FindLabel ( [ANAME], [ACRE_FLT] ): if float ( [ACRE_FLT] ) >=41: S = [ANAME] if ', ' in S: S = S.replace ( ', ', ',\n' ) elif ' ' in S: S = S.replace (' ', ',\n') else: # do something else if another test is necessary, but for now simply pass pass return S