<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: I want to use an if else statement to pass a condition in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751053#M58019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks rfairhur24 you are the man!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please can you help me with this problem, im trying to drop my pdf output into a nested folder created from my script and using the searchcursor to get attribute values this is my script;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = "Parcels"
field = "LGA"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val = row.getValue(field)
print (row.getValue(field))
field = "District"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val1 = row.getValue(field)
print (row.getValue(field))
field = "Block_No"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val2 = row.getValue(field)
print (row.getValue(field))
field = "Plot_No"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val3 = row.getValue(field)
print (row.getValue(field))
outName = str(val) + "_LGA" + "(" + str(val1) + " _Area" + ")"
outName1 = "Plot_" + str(val3) + "(" "Block_" + str(val2) + ")"
outName2 = "Block_" + str(val2) + "_Plot_" + str(val3) + "_" + str(val1) + "_Area_of_" + str(val) + "_LGA" + ".pdf"
arcpy.CreateFolder_management("C:\\ARA_STATE\\", outName)
arcpy.CreateFolder_management("C:\\ARA_STATE\\"+ outName,outName1)
arcpy.mapping.ExportToPDF(mxd,"C:\ARA_STATE\TDP_For_" + outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my final pdf output is not going into something like this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.mapping.ExportToPDF(mxd,"C:\ARA_STATE\TDP_For_" + outName,outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:53:29 GMT</pubDate>
    <dc:creator>OLANIYANOLAKUNLE</dc:creator>
    <dc:date>2021-12-12T07:53:29Z</dc:date>
    <item>
      <title>I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751050#M58016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;fc = "Parcels" field = "GeneratedN" cursor = arcpy.SearchCursor(fc) for row in cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field) Val = row.getValue(field) if Val == 1: &amp;nbsp;&amp;nbsp;&amp;nbsp; print "Done" else: &amp;nbsp;&amp;nbsp;&amp;nbsp; print "Not Done" &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions please&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 00:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751050#M58016</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2012-08-29T00:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751051#M58017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;fc = "Parcels" field = "GeneratedN" cursor = arcpy.SearchCursor(fc) for row in cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field) Val = row.getValue(field) if Val == 1: &amp;nbsp;&amp;nbsp;&amp;nbsp; print "Done" else: &amp;nbsp;&amp;nbsp;&amp;nbsp; print "Not Done" &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Any suggestions please&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your indentation is wrong for the Val = row.getValue(field) line.&amp;nbsp; It occurs only after every record is read and should produce an error.&amp;nbsp; It needs to replace the row.getValue(field) line at the same indentation level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;fc = "Parcels" field = "GeneratedN" cursor = arcpy.SearchCursor(fc) for row in cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp; Val = row.getValue(field) if Val == 1: &amp;nbsp;&amp;nbsp;&amp;nbsp; print "Done" else: &amp;nbsp;&amp;nbsp;&amp;nbsp; print "Not Done" &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As rewritten the code will only say done if the actual value in the field is 1.&amp;nbsp; Otherwise it says Not Done.&amp;nbsp; However, only the last record read will be compared for your if statement at this indentation level.&amp;nbsp; All other records will be read, but ignored for the test.&amp;nbsp; So I doubt this is what you really want to test.&amp;nbsp; Normally you would put the if test in the loop and break out of it when you find the value you want.&amp;nbsp; To do that the code would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;fc = "Parcels" field = "GeneratedN" cursor = arcpy.SearchCursor(fc) for row in cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp; Val = row.getValue(field) &amp;nbsp;&amp;nbsp;&amp;nbsp; if Val == 1: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Done" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break; &amp;nbsp;&amp;nbsp;&amp;nbsp; else: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Not Done" &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 01:24:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751051#M58017</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-08-29T01:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751052#M58018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks rfairhur24 you suggestion(s) did the trick for me. Thanks a bunch&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 03:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751052#M58018</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2012-08-29T03:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751053#M58019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks rfairhur24 you are the man!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please can you help me with this problem, im trying to drop my pdf output into a nested folder created from my script and using the searchcursor to get attribute values this is my script;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = "Parcels"
field = "LGA"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val = row.getValue(field)
print (row.getValue(field))
field = "District"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val1 = row.getValue(field)
print (row.getValue(field))
field = "Block_No"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val2 = row.getValue(field)
print (row.getValue(field))
field = "Plot_No"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; row.getValue(field)
val3 = row.getValue(field)
print (row.getValue(field))
outName = str(val) + "_LGA" + "(" + str(val1) + " _Area" + ")"
outName1 = "Plot_" + str(val3) + "(" "Block_" + str(val2) + ")"
outName2 = "Block_" + str(val2) + "_Plot_" + str(val3) + "_" + str(val1) + "_Area_of_" + str(val) + "_LGA" + ".pdf"
arcpy.CreateFolder_management("C:\\ARA_STATE\\", outName)
arcpy.CreateFolder_management("C:\\ARA_STATE\\"+ outName,outName1)
arcpy.mapping.ExportToPDF(mxd,"C:\ARA_STATE\TDP_For_" + outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my final pdf output is not going into something like this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.mapping.ExportToPDF(mxd,"C:\ARA_STATE\TDP_For_" + outName,outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751053#M58019</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2021-12-12T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751054#M58020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.CreateFolder_management("C:\\ARA_STATE\\", outName)
arcpy.CreateFolder_management("C:\\ARA_STATE\\"+ outName,outName1)
arcpy.mapping.ExportToPDF(mxd,"C:\ARA_STATE\TDP_For_" + outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;my final pdf output is not going into something like this &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.mapping.ExportToPDF(mxd,"C:\ARA_STATE\TDP_For_" + outName,outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;What do you think?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You switched from using double slashes to single in the PDF export line.&amp;nbsp; Double slashes are required for all paths in all methods unless you are place an "r" directly in front of the string to let Python know the string is to be read "raw" or unparsed.&amp;nbsp; So make your last line read either:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.mapping.ExportToPDF(mxd,"C:\\ARA_STATE\\TDP_For_" + outName,outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.mapping.ExportToPDF(mxd,r"C:\ARA_STATE\TDP_For_" + outName,outName1)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, even if you use the "r" option, if the last character in the string is a "\" the Python help says it must always end with a double slash "\\".&amp;nbsp; So r"C:\ARA_STATE\" will cause an error, but r"C:\ARA_STATE\\" will work (note the single slash in the middle of the string is fine in both, but the double slash is required at the end of the string.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751054#M58020</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T07:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751055#M58021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at your code I see a lot of wasted lines related to your cursors that did not use the previous advice I gave.&amp;nbsp; If you mean to read values from all rows you need different indents and logic.&amp;nbsp; You do not need a cursor for each field.&amp;nbsp; You only need a new cursor for each feature class.&amp;nbsp; Since you are only dealing with one feature class you only need one cursor, but many (4) getValue calls when reading each row.&amp;nbsp; Here is my attempt to clean it up a bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = "Parcels"
field = "LGA"
field1 = "District"
field2 = "Block_No"
field3 = "Plot_No"
cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # do not use 4 cursors on the same feature class, only 1 cursor is needed.
&amp;nbsp;&amp;nbsp;&amp;nbsp; # read every cursor row and get all 4 field values in a single read of the row
&amp;nbsp;&amp;nbsp;&amp;nbsp; val = row.getValue(field)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (row.getValue(field))
&amp;nbsp;&amp;nbsp;&amp;nbsp; val1 = row.getValue(field1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (row.getValue(field1))
&amp;nbsp;&amp;nbsp;&amp;nbsp; val2 = row.getValue(field2)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (row.getValue(field2))
&amp;nbsp;&amp;nbsp;&amp;nbsp; val3 = row.getValue(field3)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (row.getValue(field3))
&amp;nbsp;&amp;nbsp;&amp;nbsp; # The lines below must also be in the loop to use the values read from each row.
&amp;nbsp;&amp;nbsp;&amp;nbsp; outName = str(val) + "_LGA" + "(" + str(val1) + " _Area" + ")"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outName1 = "Plot_" + str(val3) + "(" "Block_" + str(val2) + ")"
&amp;nbsp;&amp;nbsp;&amp;nbsp; outName2 = "Block_" + str(val2) + "_Plot_" + str(val3) + "_" + str(val1) + "_Area_of_" + str(val) + "_LGA" + ".pdf"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFolder_management("C:\\ARA_STATE\\", outName)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFolder_management("C:\\ARA_STATE\\"+ outName,outName1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPDF(mxd,r"C:\ARA_STATE\TDP_For_" + outName2)&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you are just learning Python, try to test smaller amounts of code to make sure you get results you expect.&amp;nbsp; It is much harder to issolate problems when you do a lot of lines of code before testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assumed you meant to use outName2 for the pdf rather than outName1, since outName2 ends with the .pdf extension.&amp;nbsp; I think however, that you also meant to have the pdfs go into the new folders you are creating.&amp;nbsp; If so, for the last line you need something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPDF(mxd,r"C:\ARA_STATE\\" + outName + "\\" + outName1 + "\\" + "TDP_For_" + outName2)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also need to include some logic to do "Exists" testing on your directories, since you cannot create a directory that is already created without causing an error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751055#M58021</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751056#M58022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A very big thank you to you SIR!!!! Once again you are the main man. You solved yet another problem for me!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 06:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751056#M58022</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2012-08-29T06:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751057#M58023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;A very big thank you to you SIR!!!! Once again you are the main man. You solved yet another problem for me!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to help.&amp;nbsp; Consider adding a point to the response so that others will recognize that it was helpful to you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 13:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751057#M58023</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2012-08-29T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use an if else statement to pass a condition</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751058#M58024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah ive been trying to do so but i think i have issues with my browser--is it by clicking the vote up button?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 20:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751058#M58024</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2012-08-29T20:12:50Z</dc:date>
    </item>
    <item>
      <title>I want to use the enter tab of the keyboard to begin a process</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751059#M58025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&amp;nbsp; which of the following codes would i use? Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def onEditChange(self, text):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def onFocus(self, focused):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def onEnter(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def refresh(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751059#M58025</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2021-12-12T07:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use the enter tab of the keyboard to begin a process</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751060#M58026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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.&amp;nbsp; which of the following codes would i use? Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def onEditChange(self, text):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def onFocus(self, focused):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def onEnter(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def refresh(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please start a new thread for this question.&amp;nbsp; It is completely different from the other questions on this thread.&amp;nbsp; Also, I am not an expert on Python custom user interface design, so I am not sure I can help.&amp;nbsp; Please indicate how you created this combobox when you repost.&amp;nbsp; Are you hosting the combobox using a script tool interface, a tkinter interface, or what?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751060#M58026</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-12T07:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use the enter tab of the keyboard to begin a process</title>
      <link>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751061#M58027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Please start a new thread for this question.&amp;nbsp; It is completely different from the other questions on this thread.&amp;nbsp; Also, I am not an expert on Python custom user interface design, so I am not sure I can help.&amp;nbsp; Please indicate how you created this combobox when you repost.&amp;nbsp; Are you hosting the combobox using a script tool interface, a tkinter interface, or what?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok ive done that. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 20:03:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/i-want-to-use-an-if-else-statement-to-pass-a/m-p/751061#M58027</guid>
      <dc:creator>OLANIYANOLAKUNLE</dc:creator>
      <dc:date>2012-08-30T20:03:27Z</dc:date>
    </item>
  </channel>
</rss>

