<?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 Error - 000539 in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/field-calculator-error-000539/m-p/117166#M4000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey there, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to using information from one field to process data for the next and continually get the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'000539 error'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I am typing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IF [Condition] = 'Seasonal' THEN [Canopy] = '20'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I am pretty sure that should be fine (I have put == instead of = and it still doesn't work - I have taken off the quotation marks for my canopy but it still does not work)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any advice - please shoot! Any advice is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alden&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2011 19:28:18 GMT</pubDate>
    <dc:creator>AldenAckerman1</dc:creator>
    <dc:date>2011-04-25T19:28:18Z</dc:date>
    <item>
      <title>Field Calculator Error - 000539</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-calculator-error-000539/m-p/117166#M4000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey there, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to using information from one field to process data for the next and continually get the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'000539 error'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I am typing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IF [Condition] = 'Seasonal' THEN [Canopy] = '20'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I am pretty sure that should be fine (I have put == instead of = and it still doesn't work - I have taken off the quotation marks for my canopy but it still does not work)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any advice - please shoot! Any advice is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alden&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 19:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-calculator-error-000539/m-p/117166#M4000</guid>
      <dc:creator>AldenAckerman1</dc:creator>
      <dc:date>2011-04-25T19:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Field Calculator Error - 000539</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-calculator-error-000539/m-p/117167#M4001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have (at least) a couple of ways to do this, but you can't do if-then code unless you use the code block.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) Make a selection to get only the rows where [Condition] = "Seasonal". Then, use the Field Calculator, which only looks at the selected rows, to make [Canopy] = "20" (if [Canopy] is a number field, leave off the quotes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) Paste this into the Field Calculator code block, when calculating the field [Canopy]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if [Condition] = "Seasonal" then
result = "20"
else
result = null
end if&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and type the word result into the main Field Calculator text box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should probably look at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Calculate_Field_examples/005s0000002m000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;this page &lt;/A&gt;&lt;SPAN&gt;for more help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-calculator-error-000539/m-p/117167#M4001</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-11T06:53:09Z</dc:date>
    </item>
  </channel>
</rss>

