<?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 Field Calculator Conditional Script in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/field-calculator-conditional-script/m-p/192222#M10874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have a sewer Manhole attribute table with an "INVERT" field (measurement to the lowest pipe in manhole) fully populated with tappe down measurements. The next field over is "Invert Elevation" which has a few hundred values that have been manually calculated and entered by a contracted engineering firm from a previous watershed project (high accuracy data). Lastly, I have a DEM_ELEVATION field that has been derived from LiDAR for our city to give us elevations of manhole rims.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, my question is, can someone help me with the correct conditional statement to make sure I don't overwrite the values for "Invert Elevation" that are already calculated? For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the "INVERT" field contains a value that is not &amp;lt;Null&amp;gt;, then calculate (DEM_ELEVATION)-(INVERT)=(INVERT_ELEVATION)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jan 2014 13:31:37 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-01-06T13:31:37Z</dc:date>
    <item>
      <title>Field Calculator Conditional Script</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calculator-conditional-script/m-p/192222#M10874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have a sewer Manhole attribute table with an "INVERT" field (measurement to the lowest pipe in manhole) fully populated with tappe down measurements. The next field over is "Invert Elevation" which has a few hundred values that have been manually calculated and entered by a contracted engineering firm from a previous watershed project (high accuracy data). Lastly, I have a DEM_ELEVATION field that has been derived from LiDAR for our city to give us elevations of manhole rims.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, my question is, can someone help me with the correct conditional statement to make sure I don't overwrite the values for "Invert Elevation" that are already calculated? For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the "INVERT" field contains a value that is not &amp;lt;Null&amp;gt;, then calculate (DEM_ELEVATION)-(INVERT)=(INVERT_ELEVATION)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 13:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calculator-conditional-script/m-p/192222#M10874</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-01-06T13:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator Conditional Script</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calculator-conditional-script/m-p/192223#M10875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greg&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Starting at ArcGIS for Desktop 10.1, null values in an attribute table are returned as the string 'None' in the Field Calculator using Python. Knowing this, an if/elif statement can be used to find whether values are null or not. Here is an example that checks if a field contains null values: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if !INVERT! &amp;lt;&amp;gt; 'None':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !INVERT_ELEVATION! = !DEM_ELEVATION! - !INVERT!
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:39:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calculator-conditional-script/m-p/192223#M10875</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2021-12-11T09:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator Conditional Script</title>
      <link>https://community.esri.com/t5/data-management-questions/field-calculator-conditional-script/m-p/192224#M10876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Greg&lt;BR /&gt;&lt;BR /&gt;Starting at ArcGIS for Desktop 10.1, null values in an attribute table are returned as the string 'None' in the Field Calculator using Python. Knowing this, an if/elif statement can be used to find whether values are null or not. Here is an example that checks if a field contains null values: &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if !INVERT! &amp;lt;&amp;gt; 'None':
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !INVERT_ELEVATION! = !DEM_ELEVATION! - !INVERT!
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks everyone, I will let you know how it turns out!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/field-calculator-conditional-script/m-p/192224#M10876</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T09:39:55Z</dc:date>
    </item>
  </channel>
</rss>

