larry,Try something like this in your field calculator:Tick the Show CodeblockCode:If [TimeField] <= 9 Then Newfield = 1Else Newfield = 0End IfAnd below:Fieldname =NewfieldRegardsAnthony
Larry,Another useful resource can be found here:http://www.esri.com/news/arcuser/0405/files/fieldcalc_1.pdfRegardsAnthony
My a novice at Python. What I do know is that indents mean something in if-then code. I would have written the original scrpt with at least one space in front of the words "Newfield". When I paste it in this forum's text box, the spaces get removed. That could be why Anthony's code didn't have the indentation.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.