AnsweredAssumed Answered

list field values - if statement

Question asked by lara.faelivrin on Jan 19, 2015
Latest reply on Jan 26, 2015 by lara.faelivrin

With help of this code I am able to summarize the Area field values of the Geology layer.

 

list = [r.Area for r in arcpy.SearchCursor(Geology)]   # Area is the attribute field that you want to list   

 

How can I bring an if statement into this code? I only want to list the Area field values if the field "Description" == "Silicate"

 

I am very thankful for any suggestions.

Outcomes