Select to view content in your preferred language

I want to use an if else statement to pass a condition

2040
11
Jump to solution
08-28-2012 05:27 PM
OLANIYANOLAKUNLE
Frequent Contributor
I want to use an if else statement to pass a condition and it's not returning any of the two values what im i doing wrong?

fc = "Parcels" field = "GeneratedN" cursor = arcpy.SearchCursor(fc) for row in cursor:     row.getValue(field) Val = row.getValue(field) if Val == 1:     print "Done" else:     print "Not Done" 


Any suggestions please
Tags (2)
0 Kudos
11 Replies
RichardFairhurst
MVP Alum
Dear rfairhur24 please i want to be able to select a name from a drop down list of a combobox i created and i use to use the enter tab to set the process and not by just selecting the name.  which of the following codes would i use? Thanks

def onEditChange(self, text):
                pass
            def onFocus(self, focused):
                pass
            def onEnter(self):
                pass
            def refresh(self):
                pass


Please start a new thread for this question.  It is completely different from the other questions on this thread.  Also, I am not an expert on Python custom user interface design, so I am not sure I can help.  Please indicate how you created this combobox when you repost.  Are you hosting the combobox using a script tool interface, a tkinter interface, or what?
0 Kudos
OLANIYANOLAKUNLE
Frequent Contributor
Please start a new thread for this question.  It is completely different from the other questions on this thread.  Also, I am not an expert on Python custom user interface design, so I am not sure I can help.  Please indicate how you created this combobox when you repost.  Are you hosting the combobox using a script tool interface, a tkinter interface, or what?


Ok ive done that. Thanks
0 Kudos