<?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 script for if/else branching statement to use in modelbuilder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/python-script-for-if-else-branching-statement-to/m-p/826947#M1653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I looked at the problem again and used other tools in modelbuilder such as GET FIELD VALUE and CALCULATE VALUE to get the results I needed.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2018 13:07:29 GMT</pubDate>
    <dc:creator>Tabitha_NjeriKaranja</dc:creator>
    <dc:date>2018-09-26T13:07:29Z</dc:date>
    <item>
      <title>Python script for if/else branching statement to use in modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-script-for-if-else-branching-statement-to/m-p/826946#M1652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a model where I would like to perform further geoprocessing, if it fits&amp;nbsp;a certain condition. To be more specific, I have dataset which i put through the CON tool and the output is either 0, 1. Thereafter, I perform ZONAL STATISTICS whose output, I DIVIDE&amp;nbsp;out from the original dataset. When&amp;nbsp;the output of the divide tool, if it is greater than 90% to go back to the output of the CON tool and "reclassify"* the 0 to 1 such that I only have 1 in the whole dataset. If the output of the divide tool is less than 90%, no further processing is needed. I have attached a screenshot of the model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the website &lt;A class="link-titled" href="http://resources.esri.com/help/9.3/arcgisdesktop/com/gp_toolref/automating_your_work_with_models/branching_colon_implementing_if_then_else_logic.htm#Creating%20the%20field%20check%20script" title="http://resources.esri.com/help/9.3/arcgisdesktop/com/gp_toolref/automating_your_work_with_models/branching_colon_implementing_if_then_else_logic.htm#Creating%20the%20field%20check%20script"&gt;Branching: Implementing if-then-else logic&lt;/A&gt;&amp;nbsp;for IF/ELSE statement&amp;nbsp; as a starting point but I have no skills in python and thus need help in making the script. The other website checked&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/using-if-then-else-logic-for-branching.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/using-if-then-else-logic-for-branching.htm"&gt;Using If-Then-Else logic for branching—Help | ArcGIS Desktop&lt;/A&gt;, the examples open out to the ArcGIS blog and have no further helpful information that I have found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.6 and have Spatial Analyst extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: "reclassify"- am not sure if this is the right tool to use but i used it for better explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-script-for-if-else-branching-statement-to/m-p/826946#M1652</guid>
      <dc:creator>Tabitha_NjeriKaranja</dc:creator>
      <dc:date>2018-09-24T11:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for if/else branching statement to use in modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-script-for-if-else-branching-statement-to/m-p/826947#M1653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I looked at the problem again and used other tools in modelbuilder such as GET FIELD VALUE and CALCULATE VALUE to get the results I needed.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 13:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-script-for-if-else-branching-statement-to/m-p/826947#M1653</guid>
      <dc:creator>Tabitha_NjeriKaranja</dc:creator>
      <dc:date>2018-09-26T13:07:29Z</dc:date>
    </item>
  </channel>
</rss>

