<?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: Python If/Then expression calculating one field based on different field in ArcMap10.2 in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057259#M2485</link>
    <description>&lt;P&gt;Jayanta, Thanks for the quick response.&amp;nbsp; I have enclosed two images which further show my intention and python code.&amp;nbsp; I am still having a bit of trouble.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 17:28:12 GMT</pubDate>
    <dc:creator>wesmuilenburg</dc:creator>
    <dc:date>2021-05-12T17:28:12Z</dc:date>
    <item>
      <title>Python If/Then expression calculating one field based on different field in ArcMap10.2</title>
      <link>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057219#M2483</link>
      <description>&lt;P&gt;I want to calculate Inspection Cycle Totals based on the field Inspection Cycle using python.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Inspection Cycle in Null, then calc Inspection Cycle Totals to zero 0.&lt;/P&gt;&lt;P&gt;If Inspection Cycle already has a value, then calc that value into Cycle Totals.&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; Inspection Cycle is a short integer.&amp;nbsp; Inspection Cycle Total is a text field.&lt;/P&gt;&lt;P&gt;Thanks in advance for any assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 16:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057219#M2483</guid>
      <dc:creator>wesmuilenburg</dc:creator>
      <dc:date>2021-05-12T16:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python If/Then expression calculating one field based on different field in ArcMap10.2</title>
      <link>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057231#M2484</link>
      <description>&lt;P&gt;Just keep 1 variable in the function, i.e., Inspection_Cycle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also in your workflow, function name is different in Code Block and in Expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;def classify(Inspection_Cycle):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;classify(!Inspection_Cycle!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 17:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057231#M2484</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-05-12T17:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python If/Then expression calculating one field based on different field in ArcMap10.2</title>
      <link>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057259#M2485</link>
      <description>&lt;P&gt;Jayanta, Thanks for the quick response.&amp;nbsp; I have enclosed two images which further show my intention and python code.&amp;nbsp; I am still having a bit of trouble.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 17:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057259#M2485</guid>
      <dc:creator>wesmuilenburg</dc:creator>
      <dc:date>2021-05-12T17:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python If/Then expression calculating one field based on different field in ArcMap10.2</title>
      <link>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057264#M2486</link>
      <description>&lt;P&gt;Jayanta,&amp;nbsp; I have a solution.&amp;nbsp; I added () around if statement.&amp;nbsp; &amp;nbsp;I have enclosed an image of the solution to assist the community of users.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 17:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057264#M2486</guid>
      <dc:creator>wesmuilenburg</dc:creator>
      <dc:date>2021-05-12T17:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Python If/Then expression calculating one field based on different field in ArcMap10.2</title>
      <link>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057307#M2487</link>
      <description>&lt;P&gt;The If statement line should end with colon (:)&lt;/P&gt;&lt;P&gt;That's why the code (Python_fieldcalc_2.jpg) didn't run.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 18:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/python-if-then-expression-calculating-one-field/m-p/1057307#M2487</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-05-12T18:51:20Z</dc:date>
    </item>
  </channel>
</rss>

