If I align print(value) with each "if" statement, it prints the below.
import arcpy, os, sys
p = arcpy.mp.ArcGISProject("CURRENT")
m = p.listMaps('Map')[0]
l = m.listLayers(TWP + "_RIGHTS")[0]
sym = l.symbology
sym.updateRenderer('UniqueValueRenderer')
sym.renderer.fields = ['RightsType']
for grp in sym.renderer.groups:
for itm in grp.items:
value = itm.values[0]
if value == "Choose":
itm.renderer.symbol.color = {"RGB": [0, 0, 0, 50]}
itm.renderer.symbol.outlineColor = {"RGB": [255, 255, 255, 100]}
itm.renderer.symbol.outlineWidth = 0.75
itm.renderer.symbol.size = 1
itm.renderer.label = str(value)
print(value)
if value == "Easement":
itm.renderer.symbol.color = {"RGB": [0, 112, 255, 50]}
itm.renderer.symbol.outlineColor = {"RGB": [255, 255, 255, 100]}
itm.renderer.symbol.outlineWidth = 0.75
itm.renderer.symbol.size = 1
itm.renderer.symbol.label = str(value)
print(value)
if value == "Fee":
itm.renderer.symbol.color = {"RGB": [56, 168, 0, 50]}
itm.renderer.symbol.outlineColor = {"RGB": [255, 255, 255, 100]}
itm.renderer.symbol.outlineWidth = 0.75
itm.renderer.symbol.size = 1
itm.renderer.symbol.label = str(value)
print(value)
if value == "License":
itm.renderer.symbol.color = {"RGB": [0, 0, 255, 50]}
itm.renderer.symbol.outlineColor = {"RGB": [255, 255, 255, 100]}
itm.renderer.symbol.outlineWidth = 0.75
itm.renderer.symbol.size = 1
itm.renderer.symbol.label = str(value)
print(value)
l.symbology = sym
p.saveACopy("CURRENT")
print("Completed"+" "+time.strftime("%x" +" "+ "(%a)" +" "+ "at"+" "+"%I:%M"))
['0']
['0']
['0']
['0']
['1']
['1']
['1']
['1']
['2']
['2']
['2']
['2']
['3']
['3']
['3']
['3']
Completed 4/21/2023 (Fri) at 12:34
If I align print(value) with each itm.renderer.symbol statement it prints nothing. Leads me to believe that "value" stores nothing (value has no value)!
if value == "License":
itm.renderer.symbol.color = {"RGB": [0, 0, 255, 50]}
itm.renderer.symbol.outlineColor = {"RGB": [255, 255, 255, 100]}
itm.renderer.symbol.outlineWidth = 0.75
itm.renderer.symbol.size = 1
itm.renderer.symbol.label = str(value)
print(value)