A new day, a new question...
Working with arcpy.da.SearchCursor, I can select features based on a given where statement. However, rather than selecting records, I just want to see if the where statement evaluates to 'true', and if so, update a field in the row of the cursor. Currently, for a selection I use:
where <SPAN class="operator token">=</SPAN> <SPAN class="string token">"FullStreet = ('{}') AND inthousenum BETWEEN MinRange and MaxRange)"</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>street<SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>SelectLayerByAttribute_management <SPAN class="punctuation token">(</SPAN><SPAN class="string token">"AddressPoints"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">"ADD_TO_SELECTION"</SPAN><SPAN class="punctuation token">,</SPAN>where<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>So rather than select by attribute, I want to set a variable to 1 or 0 (or what ever) to indicate the success of the where statement, and take the appropriate action based on that value.
curtvprice Dan_Patterson dkwiens