How can I use arcpy to check if a search cursor returns anything and then do something based on the answer. So far I have this and it recognizes the positive - i.e. when i pass the query for 001 it gets the value, but when I substitute a bad value, the script does not print "No Search Cursor"
import arcpy
table = "A_Table"
query = "\"FeatureID\" = '001'"
theseRows = arcpy.SearchCursor(table, query)
for row in theseRows:
if theseRows:
print(row.getValue("FeatureID"))
else:
print "No Search Cursor"