<?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 Using Field Calculator with iif statement, I get &amp;quot;Cannot assign to const value&amp;quot;.  Why, please? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461801#M26427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arcade statement:&lt;/P&gt;&lt;P&gt;IIf($feature.HOLE = "HORIZONTAL",1,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Arcade cannot assign to constant value.&amp;nbsp; Why?&amp;nbsp; I am trying to set up weighting criteria.&amp;nbsp; I tried setting the field to both long and short numbers, but still get errors.&amp;nbsp; All help appreciated.&amp;nbsp; thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2020 16:00:15 GMT</pubDate>
    <dc:creator>NancyDorsey</dc:creator>
    <dc:date>2020-07-28T16:00:15Z</dc:date>
    <item>
      <title>Using Field Calculator with iif statement, I get "Cannot assign to const value".  Why, please?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461801#M26427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arcade statement:&lt;/P&gt;&lt;P&gt;IIf($feature.HOLE = "HORIZONTAL",1,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Arcade cannot assign to constant value.&amp;nbsp; Why?&amp;nbsp; I am trying to set up weighting criteria.&amp;nbsp; I tried setting the field to both long and short numbers, but still get errors.&amp;nbsp; All help appreciated.&amp;nbsp; thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:00:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461801#M26427</guid>
      <dc:creator>NancyDorsey</dc:creator>
      <dc:date>2020-07-28T16:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator with iif statement, I get "Cannot assign to const value".  Why, please?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461802#M26428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;IIf($feature.HOLE == "HORIZONTAL",1,2)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:13:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461802#M26428</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-07-28T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator with iif statement, I get "Cannot assign to const value".  Why, please?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461803#M26429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked, thanks!&amp;nbsp; Too bad ESRI has it wrong or incomplete in their documentation!&amp;nbsp; Thank you again!&amp;nbsp; CORRECTION: ESRI does have it correct, I was not using the Arcade syntax but thinking of the Desktop simple and obvious language no longer used.&amp;nbsp; Sigh.&amp;nbsp; New tricks are hard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461803#M26429</guid>
      <dc:creator>NancyDorsey</dc:creator>
      <dc:date>2020-07-28T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator with iif statement, I get "Cannot assign to const value".  Why, please?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461804#M26430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close out this question if everything is working for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 17:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461804#M26430</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-07-28T17:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator with iif statement, I get "Cannot assign to const value".  Why, please?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461805#M26431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how...though it looks like I have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 17:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461805#M26431</guid>
      <dc:creator>NancyDorsey</dc:creator>
      <dc:date>2020-07-28T17:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Field Calculator with iif statement, I get "Cannot assign to const value".  Why, please?</title>
      <link>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461806#M26432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is that incorrect in the documentation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 18:00:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-field-calculator-with-iif-statement-i-get/m-p/461806#M26432</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-07-28T18:00:09Z</dc:date>
    </item>
  </channel>
</rss>

