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.
Larry,Another useful resource can be found here:http://www.esri.com/news/arcuser/0405/files/fieldcalc_1.pdfRegardsAnthony
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
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.