<?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: Creating branches and options in model builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402803#M13655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are a couple of resources that might get you in the right direction, I'm not sure if you've checked them out or not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A 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"&gt;Branching: Implementing if-then-else logic&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=7B75069A-1422-2418-A0D5-4A472D2D49C5"&gt;Branching with If-then-else logic in ModelBuilder&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;The first is the logic behind branching and included an if-else script in a model, and the second is a download from the Resource Center with a sample you can test with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 15:46:52 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2012-06-27T15:46:52Z</dc:date>
    <item>
      <title>Creating branches and options in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402802#M13654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello fellow ArcGIS users,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m using ArcMap 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been trying to include some options in a model I want to run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment I have gotten to the point where I can get a drop-down list with names as a model parameter in the modelbuilder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I´m having now is that I can´t figure out how to get a condition to work as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If condition one is true (user selects option1) than go to this branch of the model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Else go to next if statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this is enough information, thank you in advance this would help out a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frans-Joost&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 15:14:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402802#M13654</guid>
      <dc:creator>frans-joostboogert</dc:creator>
      <dc:date>2012-06-27T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating branches and options in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402803#M13655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are a couple of resources that might get you in the right direction, I'm not sure if you've checked them out or not:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A 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"&gt;Branching: Implementing if-then-else logic&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=7B75069A-1422-2418-A0D5-4A472D2D49C5"&gt;Branching with If-then-else logic in ModelBuilder&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;The first is the logic behind branching and included an if-else script in a model, and the second is a download from the Resource Center with a sample you can test with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 15:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402803#M13655</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2012-06-27T15:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating branches and options in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402804#M13656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a series of blogs on if-then-else blogs for 10 that will help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/06/06/modelbuilderifthenelse1/"&gt;If you are stuck at "if" �?? Part 1&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/06/06/modelbuilderifthenelse2/"&gt;If you are stuck at "if" �?? Part 2 �?? Example of using Script tool to create branches using if-else logic&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/09/12/modelbuilderifthenelse3/"&gt;If you are stuck at "if" �?? Part 3 �?? Does Extension Exists model example&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/09/20/modelbuilderifthenelse4/"&gt;If you are stuck at "if" �?? Part 4 �?? Does Selection Exists model example&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/09/29/modelbuilderifthenelsepart5/"&gt;If you are stuck at "if" �?? Part 5 �?? Does Projection Exist model example&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 22:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402804#M13656</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2012-06-27T22:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating branches and options in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402805#M13657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the fast replies,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been looking at both solutions offered but I´m not sure if the calculate value tool is the right one for what I´m trying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The script is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; # Import system modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get input arguments - table name, field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Equation = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #check if equation is chosen:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if Input == Equation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetParameterAsText(2, "True")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetParameterAsText(3, "False")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetParameterAsText(2, "False")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetParameterAsText(3, "True")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I get an error saying there is a problem with the if statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both inputs are defined as strings but "input" is chosen from a drop down list when the model starts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 10:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/creating-branches-and-options-in-model-builder/m-p/402805#M13657</guid>
      <dc:creator>frans-joostboogert</dc:creator>
      <dc:date>2012-06-28T10:37:09Z</dc:date>
    </item>
  </channel>
</rss>

