<?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: Using If Statements in Field Calculator in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12420#M441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis: yep, good point&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2011 21:31:40 GMT</pubDate>
    <dc:creator>DaleHoneycutt</dc:creator>
    <dc:date>2011-07-01T21:31:40Z</dc:date>
    <item>
      <title>Using If Statements in Field Calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12417#M438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use Field Calculator to collect values from multiple fields in a feature class.&amp;nbsp; I only want records with no value to be filled in with the Field Calculator result.&amp;nbsp; Since I am setting this up for automatic updates, I am trying to program this within Model Builder.&amp;nbsp; However, my relative lack of programming experience is holding me back. Right now, my attept to program this goes as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Using Python as the Parse)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pre-Logic Script Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If !STR_ADD! = " " Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;STR_ADD=&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;!STR_NUM! +" " + !STR_PRE_DIR! +" " + !STR_PRE_TYPE! +" " + !STR_NAM!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially, if my STR_ADD field is empty, I want to fill it with the combined values of the other four fields mentioned.&amp;nbsp; I want to continue with the code to add values from other fields when some of my records remain empty.&amp;nbsp; However, if I can't get this first part completed, it is hard to continue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Colter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 16:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12417#M438</guid>
      <dc:creator>ColterSikora1</dc:creator>
      <dc:date>2011-07-01T16:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using If Statements in Field Calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12418#M439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have a look at this &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2010/08/30/Concatenate.aspx"&gt;blog &lt;/A&gt;&lt;SPAN&gt;article.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although it doesn't specifically address your problem, it shows how to deal with null values and multiple fields.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 20:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12418#M439</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2011-07-01T20:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using If Statements in Field Calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12419#M440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to use Field Calculator to collect values from multiple fields in a feature class.&amp;nbsp; I only want records with no value to be filled in with the Field Calculator result.&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be easier to pass the input through the Select Layer By Attribute tool first, selecting for:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"STR_ADD" IS NOT NULL AND "STR_ADD" &amp;lt;&amp;gt; ''&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so the calculation will only be applied to the selected rows.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 21:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12419#M440</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2011-07-01T21:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using If Statements in Field Calculator</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12420#M441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis: yep, good point&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 21:31:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-if-statements-in-field-calculator/m-p/12420#M441</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2011-07-01T21:31:40Z</dc:date>
    </item>
  </channel>
</rss>

