edit attribute on specific basis

383
1
12-05-2013 02:00 AM
rahultandon
New Contributor
i have join a shape file with exel data some of them records are not matched and fill with value 0.
    then i categorize this data on a specific value,but i did not found some polygon with does not have values.

i want to write script for detecting polygon of specific which is surrounded by a fix attribute value and if condition is satisfied change attribute with reqired value.
0 Kudos
1 Reply
JoshuaChisholm
Occasional Contributor III
Hello Rahul,

If I'm understanding the question correctly, you are trying to edit certain records in a table based on some attributes. If that is the case you have plenty of options.

I would try using "Select By Attribute" to select the records you want, then use the "Field Calculator" to set the values you want. The Field Calculator will only run on the selected records.

If you want a scripting option, you'll probably want to use an Update Cursor with an embedded if statement.

Good luck!
~Josh
0 Kudos