Hello, So my code looks for a layer name called flow then proceeds to attempt to zoom to that layer. The problem i have right now is i cant figure out how to select the layer which i know is being correctly identified in my If statements so that I can zoom to it.
for lyr in layerlist:
# if the long layer name does not equal the short layer name
if lyr.longName != lyr.name:
#Find Layer with name == "flow"
if lyr.name.lower() == "flow":
#Pan to Extent of Flow Layer
df.extent = lyr.getExtent()
print extent
print lyr.name.lower()