<?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 calculating fields in model builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-in-model-builder/m-p/408324#M13808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have what is probably a bonehead question for everyone else.&amp;nbsp; How can I calculate the value of field X to 100 but only if the value of field y=A.&amp;nbsp; I can do this easily enough in arcmap but I want to make a model that will do this.&amp;nbsp; Can anyone help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 19:33:03 GMT</pubDate>
    <dc:creator>DavidManz</dc:creator>
    <dc:date>2011-04-19T19:33:03Z</dc:date>
    <item>
      <title>calculating fields in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-in-model-builder/m-p/408324#M13808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have what is probably a bonehead question for everyone else.&amp;nbsp; How can I calculate the value of field X to 100 but only if the value of field y=A.&amp;nbsp; I can do this easily enough in arcmap but I want to make a model that will do this.&amp;nbsp; Can anyone help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 19:33:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-in-model-builder/m-p/408324#M13808</guid>
      <dc:creator>DavidManz</dc:creator>
      <dc:date>2011-04-19T19:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: calculating fields in model builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-in-model-builder/m-p/408325#M13809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Without going into too much detail; you would use the calculate field tool and, in the expression field, click on the calculate expression icon and insert a code block similar to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim FieldName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim ExpValue&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FieldName = "y"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if "FieldName" = "A" then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ExpValue = "100"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For further information, search the help files for using code blocks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-in-model-builder/m-p/408325#M13809</guid>
      <dc:creator>MaudGillespie</dc:creator>
      <dc:date>2011-04-19T21:34:36Z</dc:date>
    </item>
  </channel>
</rss>

